tests(pyargus): add test cases for signals
This commit is contained in:
parent
ab0a2c6d85
commit
137c22cd70
11 changed files with 193 additions and 31 deletions
13
pyargus/argus/__init__.pyi
Normal file
13
pyargus/argus/__init__.pyi
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from typing import List, Optional, Tuple, Type, Union
|
||||
|
||||
from argus._argus import DType as DType
|
||||
from argus.exprs import ConstBool, ConstFloat, ConstInt, ConstUInt, VarBool, VarFloat, VarInt, VarUInt
|
||||
from argus.signals import Signal
|
||||
|
||||
AllowedDtype = Union[bool, int, float]
|
||||
|
||||
def declare_var(name: str, dtype: Union[DType, Type[AllowedDtype]]) -> Union[VarBool, VarInt, VarUInt, VarFloat]: ...
|
||||
def literal(value: AllowedDtype) -> Union[ConstBool, ConstInt, ConstUInt, ConstFloat]: ...
|
||||
def signal(
|
||||
dtype: Union[DType, Type[AllowedDtype]], *, data: Optional[Union[AllowedDtype, List[Tuple[float, AllowedDtype]]]] = ...
|
||||
) -> Signal: ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue