Skip to content

Commit 8d5a827

Browse files
authored
Add missing __hash__ stubs (#746)
1 parent 23bf4da commit 8d5a827

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pandas-stubs/_libs/tslibs/timedeltas.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ class Timedelta(timedelta):
386386
) -> npt.NDArray[np.bool_]: ...
387387
@overload
388388
def __gt__(self, other: TimedeltaSeries | Series[pd.Timedelta]) -> Series[bool]: ...
389+
def __hash__(self) -> int: ...
389390
def isoformat(self) -> str: ...
390391
def to_numpy(self) -> np.timedelta64: ...
391392
@property

pandas-stubs/_libs/tslibs/timestamps.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ class Timestamp(datetime):
231231
def __ne__(self, other: npt.NDArray[np.datetime64] | Index) -> np_ndarray_bool: ... # type: ignore[misc]
232232
@overload
233233
def __ne__(self, other: object) -> Literal[True]: ...
234+
def __hash__(self) -> int: ...
234235
def weekday(self) -> int: ...
235236
def isoweekday(self) -> int: ...
236237
def isocalendar(self) -> _IsoCalendarDate: ...

0 commit comments

Comments
 (0)