1
- from typing import ClassVar , Generic , Protocol , TypeVar , final
1
+ from typing import ClassVar , Protocol , final
2
2
3
3
from typing_extensions import Self
4
4
@@ -134,9 +134,7 @@ class dtype: # noqa: N801
134
134
def __eq__ (self , other : object ) -> bool : ...
135
135
def __int__ (self ) -> int : ...
136
136
137
- _SignalKind = TypeVar ("_SignalKind" , bool , int , float , covariant = True )
138
-
139
- class Signal (Generic [_SignalKind ], Protocol ):
137
+ class Signal :
140
138
def is_empty (self ) -> bool : ...
141
139
@property
142
140
def start_time (self ) -> float | None : ...
@@ -146,16 +144,16 @@ class Signal(Generic[_SignalKind], Protocol):
146
144
def kind (self ) -> dtype : ...
147
145
148
146
@final
149
- class BoolSignal (Signal [ bool ] ):
147
+ class BoolSignal (Signal ):
150
148
@classmethod
151
149
def constant (cls , value : bool ) -> Self : ...
152
150
@classmethod
153
151
def from_samples (cls , samples : list [tuple [float , bool ]]) -> Self : ...
154
152
def push (self , time : float , value : bool ) -> None : ...
155
- def at (self , time : float ) -> _SignalKind | None : ...
153
+ def at (self , time : float ) -> bool | None : ...
156
154
157
155
@final
158
- class IntSignal (Signal [ int ] ):
156
+ class IntSignal (Signal ):
159
157
@classmethod
160
158
def constant (cls , value : int ) -> Self : ...
161
159
@classmethod
@@ -164,7 +162,7 @@ class IntSignal(Signal[int]):
164
162
def at (self , time : float ) -> int | None : ...
165
163
166
164
@final
167
- class UnsignedIntSignal (Signal [ int ] ):
165
+ class UnsignedIntSignal (Signal ):
168
166
@classmethod
169
167
def constant (cls , value : int ) -> Self : ...
170
168
@classmethod
@@ -173,7 +171,7 @@ class UnsignedIntSignal(Signal[int]):
173
171
def at (self , time : float ) -> int | None : ...
174
172
175
173
@final
176
- class FloatSignal (Signal [ float ] ):
174
+ class FloatSignal (Signal ):
177
175
@classmethod
178
176
def constant (cls , value : float ) -> Self : ...
179
177
@classmethod
0 commit comments