@@ -159,25 +159,25 @@ class Timestamp(datetime):
159
159
@overload
160
160
def __le__ (self , other : Index | npt .NDArray [np .datetime64 ]) -> np_ndarray_bool : ...
161
161
@overload
162
- def __le__ (self , other : TimestampSeries | Series [ Timestamp ] ) -> Series [bool ]: ...
162
+ def __le__ (self , other : TimestampSeries ) -> Series [bool ]: ...
163
163
@overload # type: ignore[override]
164
164
def __lt__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[misc]
165
165
@overload
166
166
def __lt__ (self , other : Index | npt .NDArray [np .datetime64 ]) -> np_ndarray_bool : ...
167
167
@overload
168
- def __lt__ (self , other : TimestampSeries | Series [ Timestamp ] ) -> Series [bool ]: ...
168
+ def __lt__ (self , other : TimestampSeries ) -> Series [bool ]: ...
169
169
@overload # type: ignore[override]
170
170
def __ge__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[misc]
171
171
@overload
172
172
def __ge__ (self , other : Index | npt .NDArray [np .datetime64 ]) -> np_ndarray_bool : ...
173
173
@overload
174
- def __ge__ (self , other : TimestampSeries | Series [ Timestamp ] ) -> Series [bool ]: ...
174
+ def __ge__ (self , other : TimestampSeries ) -> Series [bool ]: ...
175
175
@overload # type: ignore[override]
176
176
def __gt__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[misc]
177
177
@overload
178
178
def __gt__ (self , other : Index | npt .NDArray [np .datetime64 ]) -> np_ndarray_bool : ...
179
179
@overload
180
- def __gt__ (self , other : TimestampSeries | Series [ Timestamp ] ) -> Series [bool ]: ...
180
+ def __gt__ (self , other : TimestampSeries ) -> Series [bool ]: ...
181
181
# error: Signature of "__add__" incompatible with supertype "date"/"datetime"
182
182
@overload # type: ignore[override]
183
183
def __add__ (
@@ -188,9 +188,7 @@ class Timestamp(datetime):
188
188
self : _DatetimeT , other : timedelta | np .timedelta64 | Tick
189
189
) -> _DatetimeT : ...
190
190
@overload
191
- def __add__ (
192
- self , other : TimedeltaSeries | Series [Timedelta ]
193
- ) -> TimestampSeries : ...
191
+ def __add__ (self , other : TimedeltaSeries ) -> TimestampSeries : ...
194
192
@overload
195
193
def __add__ (self , other : TimedeltaIndex ) -> DatetimeIndex : ...
196
194
@overload
@@ -219,15 +217,15 @@ class Timestamp(datetime):
219
217
@overload
220
218
def __eq__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[misc] # pyright: ignore[reportOverlappingOverload]
221
219
@overload
222
- def __eq__ (self , other : TimestampSeries | Series [Timestamp ]) -> Series [bool ]: ... # type: ignore[misc]
220
+ def __eq__ (self , other : TimestampSeries | Series [np . datetime64 ]) -> Series [bool ]: ... # type: ignore[misc]
223
221
@overload
224
222
def __eq__ (self , other : npt .NDArray [np .datetime64 ] | Index ) -> np_ndarray_bool : ... # type: ignore[misc]
225
223
@overload
226
224
def __eq__ (self , other : object ) -> Literal [False ]: ...
227
225
@overload
228
226
def __ne__ (self , other : Timestamp | datetime | np .datetime64 ) -> bool : ... # type: ignore[misc] # pyright: ignore[reportOverlappingOverload]
229
227
@overload
230
- def __ne__ (self , other : TimestampSeries | Series [Timestamp ]) -> Series [bool ]: ... # type: ignore[misc]
228
+ def __ne__ (self , other : TimestampSeries | Series [np . datetime64 ]) -> Series [bool ]: ... # type: ignore[misc]
231
229
@overload
232
230
def __ne__ (self , other : npt .NDArray [np .datetime64 ] | Index ) -> np_ndarray_bool : ... # type: ignore[misc]
233
231
@overload
0 commit comments