Skip to content

Commit e67aaa9

Browse files
committed
replace one more UnknownIndex
1 parent 53f13f1 commit e67aaa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas-stubs/_libs/tslibs/timestamps.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ from typing import (
1919
import numpy as np
2020
from pandas import (
2121
DatetimeIndex,
22+
Index,
2223
TimedeltaIndex,
2324
)
24-
from pandas.core.indexes.base import UnknownIndex
2525
from pandas.core.series import (
2626
Series,
2727
TimedeltaSeries,
@@ -236,15 +236,15 @@ class Timestamp(datetime, SupportsIndex):
236236
@overload
237237
def __eq__(self, other: TimestampSeries) -> Series[bool]: ... # type: ignore[overload-overlap]
238238
@overload
239-
def __eq__(self, other: npt.NDArray[np.datetime64] | UnknownIndex) -> np_ndarray_bool: ... # type: ignore[overload-overlap]
239+
def __eq__(self, other: npt.NDArray[np.datetime64] | Index) -> np_ndarray_bool: ... # type: ignore[overload-overlap]
240240
@overload
241241
def __eq__(self, other: object) -> Literal[False]: ...
242242
@overload
243243
def __ne__(self, other: Timestamp | datetime | np.datetime64) -> bool: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
244244
@overload
245245
def __ne__(self, other: TimestampSeries) -> Series[bool]: ... # type: ignore[overload-overlap]
246246
@overload
247-
def __ne__(self, other: npt.NDArray[np.datetime64] | UnknownIndex) -> np_ndarray_bool: ... # type: ignore[overload-overlap]
247+
def __ne__(self, other: npt.NDArray[np.datetime64] | Index) -> np_ndarray_bool: ... # type: ignore[overload-overlap]
248248
@overload
249249
def __ne__(self, other: object) -> Literal[True]: ...
250250
def __hash__(self) -> int: ...

0 commit comments

Comments
 (0)