@@ -179,7 +179,7 @@ class _LocIndexerSeries(_LocIndexer, Generic[S1]):
179
179
# ignore needed because of mypy. Overlapping, but we want to distinguish
180
180
# having a tuple of just scalars, versus tuples that include slices or Index
181
181
@overload
182
- def __getitem__ ( # type: ignore[overload-overlap]
182
+ def __getitem__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
183
183
self ,
184
184
idx : Scalar | tuple [Scalar , ...],
185
185
# tuple case is for getting a specific element when using a MultiIndex
@@ -1465,7 +1465,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1465
1465
) -> Series : ...
1466
1466
# ignore needed for mypy as we want different results based on the arguments
1467
1467
@overload # type: ignore[override]
1468
- def __and__ ( # type: ignore[overload-overlap]
1468
+ def __and__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
1469
1469
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1470
1470
) -> Series [bool ]: ...
1471
1471
@overload
@@ -1499,7 +1499,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1499
1499
def __pow__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1500
1500
# ignore needed for mypy as we want different results based on the arguments
1501
1501
@overload # type: ignore[override]
1502
- def __or__ ( # type: ignore[overload-overlap]
1502
+ def __or__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
1503
1503
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1504
1504
) -> Series [bool ]: ...
1505
1505
@overload
@@ -1512,7 +1512,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1512
1512
def __radd__ (self , other : num | _str | _ListLike | Series ) -> Series : ...
1513
1513
# ignore needed for mypy as we want different results based on the arguments
1514
1514
@overload # type: ignore[override]
1515
- def __rand__ ( # type: ignore[overload-overlap]
1515
+ def __rand__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
1516
1516
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1517
1517
) -> Series [bool ]: ...
1518
1518
@overload
@@ -1526,7 +1526,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1526
1526
def __rpow__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1527
1527
# ignore needed for mypy as we want different results based on the arguments
1528
1528
@overload # type: ignore[override]
1529
- def __ror__ ( # type: ignore[overload-overlap]
1529
+ def __ror__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
1530
1530
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1531
1531
) -> Series [bool ]: ...
1532
1532
@overload
@@ -1535,7 +1535,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1535
1535
def __rtruediv__ (self , other : num | _ListLike | Series [S1 ]) -> Series : ...
1536
1536
# ignore needed for mypy as we want different results based on the arguments
1537
1537
@overload # type: ignore[override]
1538
- def __rxor__ ( # type: ignore[overload-overlap]
1538
+ def __rxor__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
1539
1539
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1540
1540
) -> Series [bool ]: ...
1541
1541
@overload
@@ -1559,7 +1559,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1559
1559
def __truediv__ (self , other : num | _ListLike | Series [S1 ]) -> Series : ...
1560
1560
# ignore needed for mypy as we want different results based on the arguments
1561
1561
@overload # type: ignore[override]
1562
- def __xor__ ( # type: ignore[overload-overlap]
1562
+ def __xor__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
1563
1563
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1564
1564
) -> Series [bool ]: ...
1565
1565
@overload
0 commit comments