@@ -25,7 +25,6 @@ from pandas import (
25
25
from pandas .core .series import (
26
26
Series ,
27
27
TimedeltaSeries ,
28
- TimestampSeries ,
29
28
)
30
29
from typing_extensions import (
31
30
Never ,
@@ -172,31 +171,31 @@ class Timestamp(datetime, SupportsIndex):
172
171
self , other : DatetimeIndex | npt .NDArray [np .datetime64 ]
173
172
) -> np_ndarray_bool : ...
174
173
@overload
175
- def __le__ (self , other : TimestampSeries ) -> Series [bool ]: ...
174
+ def __le__ (self , other : Series [ Timestamp ] ) -> Series [bool ]: ...
176
175
@overload # type: ignore[override]
177
176
def __lt__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[misc]
178
177
@overload
179
178
def __lt__ (
180
179
self , other : DatetimeIndex | npt .NDArray [np .datetime64 ]
181
180
) -> np_ndarray_bool : ...
182
181
@overload
183
- def __lt__ (self , other : TimestampSeries ) -> Series [bool ]: ...
182
+ def __lt__ (self , other : Series [ Timestamp ] ) -> Series [bool ]: ...
184
183
@overload # type: ignore[override]
185
184
def __ge__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[misc]
186
185
@overload
187
186
def __ge__ (
188
187
self , other : DatetimeIndex | npt .NDArray [np .datetime64 ]
189
188
) -> np_ndarray_bool : ...
190
189
@overload
191
- def __ge__ (self , other : TimestampSeries ) -> Series [bool ]: ...
190
+ def __ge__ (self , other : Series [ Timestamp ] ) -> Series [bool ]: ...
192
191
@overload # type: ignore[override]
193
192
def __gt__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[misc]
194
193
@overload
195
194
def __gt__ (
196
195
self , other : DatetimeIndex | npt .NDArray [np .datetime64 ]
197
196
) -> np_ndarray_bool : ...
198
197
@overload
199
- def __gt__ (self , other : TimestampSeries ) -> Series [bool ]: ...
198
+ def __gt__ (self , other : Series [ Timestamp ] ) -> Series [bool ]: ...
200
199
# error: Signature of "__add__" incompatible with supertype "date"/"datetime"
201
200
@overload # type: ignore[override]
202
201
def __add__ (
@@ -205,7 +204,7 @@ class Timestamp(datetime, SupportsIndex):
205
204
@overload
206
205
def __add__ (self , other : timedelta | np .timedelta64 | Tick ) -> Self : ...
207
206
@overload
208
- def __add__ (self , other : TimedeltaSeries ) -> TimestampSeries : ...
207
+ def __add__ (self , other : TimedeltaSeries ) -> Series [ Timestamp ] : ...
209
208
@overload
210
209
def __add__ (self , other : TimedeltaIndex ) -> DatetimeIndex : ...
211
210
@overload
@@ -224,25 +223,25 @@ class Timestamp(datetime, SupportsIndex):
224
223
@overload
225
224
def __sub__ (self , other : TimedeltaIndex ) -> DatetimeIndex : ...
226
225
@overload
227
- def __sub__ (self , other : TimedeltaSeries ) -> TimestampSeries : ...
226
+ def __sub__ (self , other : TimedeltaSeries ) -> Series [ Timestamp ] : ...
228
227
@overload
229
- def __sub__ (self , other : TimestampSeries ) -> TimedeltaSeries : ...
228
+ def __sub__ (self , other : Series [ Timestamp ] ) -> TimedeltaSeries : ...
230
229
@overload
231
230
def __sub__ (
232
231
self , other : npt .NDArray [np .timedelta64 ]
233
232
) -> npt .NDArray [np .datetime64 ]: ...
234
233
@overload
235
234
def __eq__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
236
235
@overload
237
- def __eq__ (self , other : TimestampSeries ) -> Series [bool ]: ... # type: ignore[overload-overlap]
236
+ def __eq__ (self , other : Series [ Timestamp ] ) -> Series [bool ]: ... # type: ignore[overload-overlap]
238
237
@overload
239
238
def __eq__ (self , other : npt .NDArray [np .datetime64 ] | Index ) -> np_ndarray_bool : ... # type: ignore[overload-overlap]
240
239
@overload
241
240
def __eq__ (self , other : object ) -> Literal [False ]: ...
242
241
@overload
243
242
def __ne__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
244
243
@overload
245
- def __ne__ (self , other : TimestampSeries ) -> Series [bool ]: ... # type: ignore[overload-overlap]
244
+ def __ne__ (self , other : Series [ Timestamp ] ) -> Series [bool ]: ... # type: ignore[overload-overlap]
246
245
@overload
247
246
def __ne__ (self , other : npt .NDArray [np .datetime64 ] | Index ) -> np_ndarray_bool : ... # type: ignore[overload-overlap]
248
247
@overload
0 commit comments