Skip to content

Commit 75c8c4e

Browse files
GH1447 Example
1 parent 2bc8049 commit 75c8c4e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pandas-stubs/core/series.pyi

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ from pandas.core.window.rolling import (
106106
from typing_extensions import (
107107
Never,
108108
Self,
109+
override,
109110
)
110111
import xarray as xr
111112

@@ -2190,13 +2191,17 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
21902191
axis: int = 0,
21912192
) -> Series[_str]: ...
21922193
# ignore needed for mypy as we want different results based on the arguments
2193-
@overload # type: ignore[override]
2194+
@overload
2195+
@override
21942196
# pyrefly: ignore # bad-override
2195-
def __and__( # pyright: ignore[reportOverlappingOverload]
2197+
def __and__(
21962198
self, other: bool | list[int] | MaskType
21972199
) -> Series[bool]: ...
21982200
@overload
2199-
def __and__(self, other: int | np_ndarray_anyint | Series[int]) -> Series[int]: ...
2201+
def __and__( # pyright: ignore[reportOverlappingOverload]
2202+
self, other: int | np_ndarray_anyint | Series[int]
2203+
) -> Series[int]: ...
2204+
@override
22002205
def __eq__(self, other: object) -> Series[_bool]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
22012206
@overload
22022207
def __floordiv__(self, other: Index[Never] | Series[Never]) -> Series: ...

0 commit comments

Comments
 (0)