diff --git a/pandas-stubs/core/indexes/datetimelike.pyi b/pandas-stubs/core/indexes/datetimelike.pyi index fb27fae21..caa10d36d 100644 --- a/pandas-stubs/core/indexes/datetimelike.pyi +++ b/pandas-stubs/core/indexes/datetimelike.pyi @@ -19,7 +19,7 @@ class DatetimeIndexOpsMixin(ExtensionIndex[S1]): def argmin(self, axis=..., skipna: bool = ..., *args, **kwargs): ... def max(self, axis=..., skipna: bool = ..., *args, **kwargs): ... def argmax(self, axis=..., skipna: bool = ..., *args, **kwargs): ... - def __rsub__( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] + def __rsub__( # type: ignore[override] self, other: DatetimeIndexOpsMixin ) -> TimedeltaIndex: ... diff --git a/pandas-stubs/core/series.pyi b/pandas-stubs/core/series.pyi index 209237746..edfafe6c1 100644 --- a/pandas-stubs/core/series.pyi +++ b/pandas-stubs/core/series.pyi @@ -1506,23 +1506,21 @@ class Series(IndexOpsMixin[S1], NDFrame): self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool] ) -> Series[bool]: ... @overload - def __and__( # pyright: ignore[reportIncompatibleMethodOverride] - self, other: int | np_ndarray_anyint | Series[int] - ) -> Series[int]: ... + def __and__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ... # def __array__(self, dtype: Optional[_bool] = ...) -> _np_ndarray def __div__(self, other: num | _ListLike | Series[S1]) -> Series[S1]: ... def __eq__(self, other: object) -> Series[_bool]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] def __floordiv__(self, other: num | _ListLike | Series[S1]) -> Series[int]: ... - def __ge__( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] + def __ge__( # type: ignore[override] self, other: S1 | _ListLike | Series[S1] | datetime | timedelta | date ) -> Series[_bool]: ... - def __gt__( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] + def __gt__( # type: ignore[override] self, other: S1 | _ListLike | Series[S1] | datetime | timedelta | date ) -> Series[_bool]: ... - def __le__( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] + def __le__( # type: ignore[override] self, other: S1 | _ListLike | Series[S1] | datetime | timedelta | date ) -> Series[_bool]: ... - def __lt__( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] + def __lt__( # type: ignore[override] self, other: S1 | _ListLike | Series[S1] | datetime | timedelta | date ) -> Series[_bool]: ... @overload @@ -1540,9 +1538,7 @@ class Series(IndexOpsMixin[S1], NDFrame): self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool] ) -> Series[bool]: ... @overload - def __or__( # pyright: ignore[reportIncompatibleMethodOverride] - self, other: int | np_ndarray_anyint | Series[int] - ) -> Series[int]: ... + def __or__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ... @overload def __radd__(self, other: S1 | Series[S1]) -> Self: ... @overload @@ -1553,7 +1549,7 @@ class Series(IndexOpsMixin[S1], NDFrame): self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool] ) -> Series[bool]: ... @overload - def __rand__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ... # type: ignore[misc] # pyright: ignore[reportIncompatibleMethodOverride] + def __rand__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ... # type: ignore[misc] def __rdiv__(self, other: num | _ListLike | Series[S1]) -> Series[S1]: ... def __rdivmod__(self, other: num | _ListLike | Series[S1]) -> Series[S1]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] def __rfloordiv__(self, other: num | _ListLike | Series[S1]) -> Series[S1]: ... @@ -1572,7 +1568,7 @@ class Series(IndexOpsMixin[S1], NDFrame): self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool] ) -> Series[bool]: ... @overload - def __ror__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ... # type: ignore[misc] # pyright: ignore[reportIncompatibleMethodOverride] + def __ror__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ... # type: ignore[misc] def __rsub__(self, other: num | _ListLike | Series[S1]) -> Series: ... def __rtruediv__(self, other: num | _ListLike | Series[S1]) -> Series: ... # ignore needed for mypy as we want different results based on the arguments @@ -1581,7 +1577,7 @@ class Series(IndexOpsMixin[S1], NDFrame): self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool] ) -> Series[bool]: ... @overload - def __rxor__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ... # type: ignore[misc] # pyright: ignore[reportIncompatibleMethodOverride] + def __rxor__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ... # type: ignore[misc] @overload def __sub__( self: Series[Timestamp], @@ -1605,9 +1601,7 @@ class Series(IndexOpsMixin[S1], NDFrame): self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool] ) -> Series[bool]: ... @overload - def __xor__( # pyright: ignore[reportIncompatibleMethodOverride] - self, other: int | np_ndarray_anyint | Series[int] - ) -> Series[int]: ... + def __xor__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ... def __invert__(self) -> Series[bool]: ... # properties # @property