add more type annotations
[nmigen-type-annotations.git] / nmigen / hdl / cd.pyi
1 from .ast import Signal
2 from typing import Optional
3
4 __all__ = ["ClockDomain", "DomainError"]
5
6
7 class DomainError(Exception):
8 pass
9
10
11 class ClockDomain:
12 clk: Signal
13 rst: Optional[Signal]
14
15 def __init__(self,
16 name: Optional[str] = None,
17 reset_less: bool = False,
18 async_reset: bool = False):
19 ...
20
21 def rename(self, new_name: str) -> None:
22 ...