@@ -152,7 +152,6 @@ from pandas._typing import (
152
152
VoidDtypeArg ,
153
153
WriteBuffer ,
154
154
np_ndarray_anyint ,
155
- np_ndarray_bool ,
156
155
npt ,
157
156
num ,
158
157
)
@@ -1544,7 +1543,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1544
1543
# ignore needed for mypy as we want different results based on the arguments
1545
1544
@overload # type: ignore[override]
1546
1545
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
1548
1547
) -> Series [bool ]: ...
1549
1548
@overload
1550
1549
def __and__ ( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1578,7 +1577,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1578
1577
# ignore needed for mypy as we want different results based on the arguments
1579
1578
@overload # type: ignore[override]
1580
1579
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
1582
1581
) -> Series [bool ]: ...
1583
1582
@overload
1584
1583
def __or__ ( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1591,7 +1590,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1591
1590
# ignore needed for mypy as we want different results based on the arguments
1592
1591
@overload # type: ignore[override]
1593
1592
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 ]
1595
1594
) -> Series [bool ]: ...
1596
1595
@overload
1597
1596
def __rand__ ( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1612,7 +1611,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1612
1611
# ignore needed for mypy as we want different results based on the arguments
1613
1612
@overload # type: ignore[override]
1614
1613
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 ]
1616
1615
) -> Series [bool ]: ...
1617
1616
@overload
1618
1617
def __ror__ ( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1623,7 +1622,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1623
1622
# ignore needed for mypy as we want different results based on the arguments
1624
1623
@overload # type: ignore[override]
1625
1624
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 ]
1627
1626
) -> Series [bool ]: ...
1628
1627
@overload
1629
1628
def __rxor__ ( # pyright: ignore[reportIncompatibleMethodOverride]
@@ -1649,7 +1648,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1649
1648
# ignore needed for mypy as we want different results based on the arguments
1650
1649
@overload # type: ignore[override]
1651
1650
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 ]
1653
1652
) -> Series [bool ]: ...
1654
1653
@overload
1655
1654
def __xor__ ( # pyright: ignore[reportIncompatibleMethodOverride]
0 commit comments