Skip to content

Commit c8e3381

Browse files
More replacemens in pandas-stubs/core/series.pyi
1 parent d1413b0 commit c8e3381

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pandas-stubs/core/series.pyi

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ from pandas._typing import (
152152
VoidDtypeArg,
153153
WriteBuffer,
154154
np_ndarray_anyint,
155-
np_ndarray_bool,
156155
npt,
157156
num,
158157
)
@@ -1544,7 +1543,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
15441543
# ignore needed for mypy as we want different results based on the arguments
15451544
@overload # type: ignore[override]
15461545
def __and__( # pyright: ignore[reportOverlappingOverload]
1547-
self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool]
1546+
self, other: bool | list[int] | MaskType
15481547
) -> Series[bool]: ...
15491548
@overload
15501549
def __and__( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1578,7 +1577,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
15781577
# ignore needed for mypy as we want different results based on the arguments
15791578
@overload # type: ignore[override]
15801579
def __or__( # pyright: ignore[reportOverlappingOverload]
1581-
self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool]
1580+
self, other: bool | list[int] | MaskType
15821581
) -> Series[bool]: ...
15831582
@overload
15841583
def __or__( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1591,7 +1590,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
15911590
# ignore needed for mypy as we want different results based on the arguments
15921591
@overload # type: ignore[override]
15931592
def __rand__( # pyright: ignore[reportOverlappingOverload]
1594-
self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool]
1593+
self, other: bool | MaskType | list[int]
15951594
) -> Series[bool]: ...
15961595
@overload
15971596
def __rand__( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1612,7 +1611,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
16121611
# ignore needed for mypy as we want different results based on the arguments
16131612
@overload # type: ignore[override]
16141613
def __ror__( # pyright: ignore[reportOverlappingOverload]
1615-
self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool]
1614+
self, other: bool | MaskType | list[int]
16161615
) -> Series[bool]: ...
16171616
@overload
16181617
def __ror__( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1623,7 +1622,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
16231622
# ignore needed for mypy as we want different results based on the arguments
16241623
@overload # type: ignore[override]
16251624
def __rxor__( # pyright: ignore[reportOverlappingOverload]
1626-
self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool]
1625+
self, other: bool | MaskType | list[int]
16271626
) -> Series[bool]: ...
16281627
@overload
16291628
def __rxor__( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1649,7 +1648,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
16491648
# ignore needed for mypy as we want different results based on the arguments
16501649
@overload # type: ignore[override]
16511650
def __xor__( # pyright: ignore[reportOverlappingOverload]
1652-
self, other: bool | list[bool] | list[int] | np_ndarray_bool | Series[bool]
1651+
self, other: bool | MaskType | list[int]
16531652
) -> Series[bool]: ...
16541653
@overload
16551654
def __xor__( # pyright: ignore[reportIncompatibleMethodOverride]

0 commit comments

Comments
 (0)