11from collections .abc import Callable , Iterable
2- from typing import Any , Generic , TypeVar
32from types import ModuleType
3+ from typing import Any , Generic
44
5- from typing_extensions import Self , override
5+ from typing_extensions import Self , TypeVar , override
66
77from .core import Formula
8- from .operators import Bounds , M , M_neg , M_le , M_ge , M_neg_ge
8+ from .operators import Bounds , M , M_ge , M_le , M_neg , M_neg_ge
99
1010class PanicException (Exception ): ...
1111
@@ -27,12 +27,12 @@ class Bottom(Any): # pyright: ignore[reportAny, reportExplicitAny]
2727 def __ge__ (self , other : object ) -> bool : ...
2828 def __gt__ (self , other : object ) -> bool : ...
2929
30- class Trace (Generic [T ]):
31- def __new__ (cls , elements : dict [float , T ] | Trace [T ]) -> Self : ...
32- def __getitem__ (self , value : float ) -> T : ...
30+ class Trace (Generic [_T_co ]):
31+ def __new__ (cls , elements : dict [float , _T_co ] | Trace [_T_co ]) -> Self : ...
32+ def __getitem__ (self , value : float ) -> _T_co : ...
3333 def times (self ) -> Iterable [float ]: ...
34- def states (self ) -> Iterable [T ]: ...
35- def at_time (self , time : float ) -> T | None : ...
34+ def states (self ) -> Iterable [_T_co ]: ...
35+ def at_time (self , time : float ) -> _T_co | None : ...
3636
3737class Predicate (Formula [dict [str , float ], float ]):
3838 def __new__ (cls , coefficients : dict [str , float ], constant : float ) -> Self : ...
0 commit comments