@@ -1506,21 +1506,23 @@ class Series(IndexOpsMixin[S1], NDFrame):
1506
1506
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1507
1507
) -> Series [bool ]: ...
1508
1508
@overload
1509
- def __and__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ...
1509
+ def __and__ ( # pyright: ignore[reportIncompatibleMethodOverride]
1510
+ self , other : int | np_ndarray_anyint | Series [int ]
1511
+ ) -> Series [int ]: ...
1510
1512
# def __array__(self, dtype: Optional[_bool] = ...) -> _np_ndarray
1511
1513
def __div__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1512
1514
def __eq__ (self , other : object ) -> Series [_bool ]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
1513
1515
def __floordiv__ (self , other : num | _ListLike | Series [S1 ]) -> Series [int ]: ...
1514
- def __ge__ ( # type: ignore[override]
1516
+ def __ge__ ( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
1515
1517
self , other : S1 | _ListLike | Series [S1 ] | datetime | timedelta | date
1516
1518
) -> Series [_bool ]: ...
1517
- def __gt__ ( # type: ignore[override]
1519
+ def __gt__ ( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
1518
1520
self , other : S1 | _ListLike | Series [S1 ] | datetime | timedelta | date
1519
1521
) -> Series [_bool ]: ...
1520
- def __le__ ( # type: ignore[override]
1522
+ def __le__ ( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
1521
1523
self , other : S1 | _ListLike | Series [S1 ] | datetime | timedelta | date
1522
1524
) -> Series [_bool ]: ...
1523
- def __lt__ ( # type: ignore[override]
1525
+ def __lt__ ( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
1524
1526
self , other : S1 | _ListLike | Series [S1 ] | datetime | timedelta | date
1525
1527
) -> Series [_bool ]: ...
1526
1528
@overload
@@ -1538,7 +1540,9 @@ class Series(IndexOpsMixin[S1], NDFrame):
1538
1540
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1539
1541
) -> Series [bool ]: ...
1540
1542
@overload
1541
- def __or__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ...
1543
+ def __or__ ( # pyright: ignore[reportIncompatibleMethodOverride]
1544
+ self , other : int | np_ndarray_anyint | Series [int ]
1545
+ ) -> Series [int ]: ...
1542
1546
@overload
1543
1547
def __radd__ (self , other : S1 | Series [S1 ]) -> Self : ...
1544
1548
@overload
@@ -1549,7 +1553,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1549
1553
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1550
1554
) -> Series [bool ]: ...
1551
1555
@overload
1552
- def __rand__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ... # type: ignore[misc]
1556
+ def __rand__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ... # type: ignore[misc] # pyright: ignore[reportIncompatibleMethodOverride]
1553
1557
def __rdiv__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1554
1558
def __rdivmod__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
1555
1559
def __rfloordiv__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
@@ -1568,7 +1572,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1568
1572
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1569
1573
) -> Series [bool ]: ...
1570
1574
@overload
1571
- def __ror__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ... # type: ignore[misc]
1575
+ def __ror__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ... # type: ignore[misc] # pyright: ignore[reportIncompatibleMethodOverride]
1572
1576
def __rsub__ (self , other : num | _ListLike | Series [S1 ]) -> Series : ...
1573
1577
def __rtruediv__ (self , other : num | _ListLike | Series [S1 ]) -> Series : ...
1574
1578
# ignore needed for mypy as we want different results based on the arguments
@@ -1577,7 +1581,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1577
1581
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1578
1582
) -> Series [bool ]: ...
1579
1583
@overload
1580
- def __rxor__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ... # type: ignore[misc]
1584
+ def __rxor__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ... # type: ignore[misc] # pyright: ignore[reportIncompatibleMethodOverride]
1581
1585
@overload
1582
1586
def __sub__ (
1583
1587
self : Series [Timestamp ],
@@ -1601,7 +1605,9 @@ class Series(IndexOpsMixin[S1], NDFrame):
1601
1605
self , other : bool | list [bool ] | list [int ] | np_ndarray_bool | Series [bool ]
1602
1606
) -> Series [bool ]: ...
1603
1607
@overload
1604
- def __xor__ (self , other : int | np_ndarray_anyint | Series [int ]) -> Series [int ]: ...
1608
+ def __xor__ ( # pyright: ignore[reportIncompatibleMethodOverride]
1609
+ self , other : int | np_ndarray_anyint | Series [int ]
1610
+ ) -> Series [int ]: ...
1605
1611
def __invert__ (self ) -> Series [bool ]: ...
1606
1612
# properties
1607
1613
# @property
0 commit comments