13 lines
634 B
Python
13 lines
634 B
Python
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: ...
|