feat!(py): expose boolean semantics to Python

This commit is contained in:
Anand Balakrishnan 2023-05-03 16:32:49 -07:00
parent c42f892099
commit e6ef427e2f
No known key found for this signature in database
8 changed files with 221 additions and 40 deletions

View file

@ -1,5 +1,5 @@
from argus import _argus
from argus._argus import *
from argus._argus import * # noqa: F401
__all__ = []

View file

@ -158,3 +158,11 @@ class FloatSignal(Signal):
@staticmethod
def from_samples(samples: List[Tuple[float, float]]) -> FloatSignal: ...
def push(self, time, value): ...
@final
class Trace: ...
@final
class BooleanSemantics:
@staticmethod
def eval(expr: BoolExpr, trace: Trace) -> BoolSignal: ...