@@ -9,7 +9,7 @@ from .operators import Bounds, M, M_ge, M_le, M_neg, M_neg_ge
99
1010class PanicException (Exception ): ...
1111
12- T = TypeVar ("T " , covariant = True )
12+ _T = TypeVar ("_T " , infer_variance = True )
1313
1414class Top (Any ): # pyright: ignore[reportAny, reportExplicitAny]
1515 def __le__ (self , other : object ) -> bool : ...
@@ -27,54 +27,54 @@ 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_co ]):
31- def __new__ (cls , elements : dict [float , _T_co ] | Trace [_T_co ]) -> Self : ...
32- def __getitem__ (self , value : float ) -> _T_co : ...
30+ class Trace (Generic [_T ]):
31+ def __new__ (cls , elements : dict [float , _T ] | Trace [_T ]) -> Self : ...
32+ def __getitem__ (self , value : float ) -> _T : ...
3333 def times (self ) -> Iterable [float ]: ...
34- def states (self ) -> Iterable [_T_co ]: ...
35- def at_time (self , time : float ) -> _T_co | None : ...
34+ def states (self ) -> Iterable [_T ]: ...
35+ def at_time (self , time : float ) -> _T | None : ...
3636
3737class Predicate (Formula [dict [str , float ], float ]):
3838 def __new__ (cls , coefficients : dict [str , float ], constant : float ) -> Self : ...
3939 @override
4040 def evaluate (self , trace : Trace [dict [str , float ]]) -> Trace [float ]: ...
4141
42- S = TypeVar ("S " , contravariant = True )
42+ _S = TypeVar ("_S " , infer_variance = True )
4343
44- class Not (Formula [S , M_neg ]):
45- def __new__ (cls , subformula : Formula [S , M_neg ]) -> Self : ...
44+ class Not (Formula [_S , M_neg ]):
45+ def __new__ (cls , subformula : Formula [_S , M_neg ]) -> Self : ...
4646 @override
47- def evaluate (self , trace : Trace [S ]) -> Trace [M_neg ]: ...
47+ def evaluate (self , trace : Trace [_S ]) -> Trace [M_neg ]: ...
4848
49- class And (Formula [S , M_le ]):
50- def __new__ (cls , lhs : Formula [S , M_le ], rhs : Formula [S , M_le ]) -> Self : ...
49+ class And (Formula [_S , M_le ]):
50+ def __new__ (cls , lhs : Formula [_S , M_le ], rhs : Formula [_S , M_le ]) -> Self : ...
5151 @override
52- def evaluate (self , trace : Trace [S ]) -> Trace [M_le ]: ...
52+ def evaluate (self , trace : Trace [_S ]) -> Trace [M_le ]: ...
5353
54- class Or (Formula [S , M_ge ]):
55- def __new__ (cls , lhs : Formula [S , M_ge ], rhs : Formula [S , M_ge ]) -> Self : ...
54+ class Or (Formula [_S , M_ge ]):
55+ def __new__ (cls , lhs : Formula [_S , M_ge ], rhs : Formula [_S , M_ge ]) -> Self : ...
5656 @override
57- def evaluate (self , trace : Trace [S ]) -> Trace [M_ge ]: ...
57+ def evaluate (self , trace : Trace [_S ]) -> Trace [M_ge ]: ...
5858
59- class Implies (Formula [S , M_neg_ge ]):
60- def __new__ (cls , lhs : Formula [S , M_neg_ge ], rhs : Formula [S , M_neg_ge ]) -> Self : ...
59+ class Implies (Formula [_S , M_neg_ge ]):
60+ def __new__ (cls , lhs : Formula [_S , M_neg_ge ], rhs : Formula [_S , M_neg_ge ]) -> Self : ...
6161 @override
62- def evaluate (self , trace : Trace [S ]) -> Trace [M_neg_ge ]: ...
62+ def evaluate (self , trace : Trace [_S ]) -> Trace [M_neg_ge ]: ...
6363
64- class Next (Formula [S , M ]):
65- def __new__ (cls , subformula : Formula [S , M ]) -> Self : ...
64+ class Next (Formula [_S , M ]):
65+ def __new__ (cls , subformula : Formula [_S , M ]) -> Self : ...
6666 @override
67- def evaluate (self , trace : Trace [S ]) -> Trace [M ]: ...
67+ def evaluate (self , trace : Trace [_S ]) -> Trace [M ]: ...
6868
69- class Always (Formula [S , M_le ]):
70- def __new__ (cls , bounds : Bounds | None , subformula : Formula [S , M_le ]) -> Self : ...
69+ class Always (Formula [_S , M_le ]):
70+ def __new__ (cls , bounds : Bounds | None , subformula : Formula [_S , M_le ]) -> Self : ...
7171 @override
72- def evaluate (self , trace : Trace [S ]) -> Trace [M_le ]: ...
72+ def evaluate (self , trace : Trace [_S ]) -> Trace [M_le ]: ...
7373
74- class Eventually (Formula [S , M_ge ]):
75- def __new__ (cls , bounds : Bounds | None , subformula : Formula [S , M_ge ]) -> Self : ...
74+ class Eventually (Formula [_S , M_ge ]):
75+ def __new__ (cls , bounds : Bounds | None , subformula : Formula [_S , M_ge ]) -> Self : ...
7676 @override
77- def evaluate (self , trace : Trace [S ]) -> Trace [M_ge ]: ...
77+ def evaluate (self , trace : Trace [_S ]) -> Trace [M_ge ]: ...
7878
7979class _StlModule (ModuleType ):
8080 class Formula (Formula [dict [str , float ], float ]): ...
0 commit comments