Skip to content

Commit 7fa0a3e

Browse files
committed
fix(comment): #1275 (comment)
1 parent 6f8e00a commit 7fa0a3e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas-stubs/core/series.pyi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
16271627
other: num | _str | timedelta | Timedelta | _ListLike | Series | np.timedelta64,
16281628
) -> Series: ...
16291629
@overload
1630-
def __add__(self: Series[int], other: Series[Never]) -> Series: ...
1630+
def __add__(self: Series, other: Series[Never]) -> Series: ...
16311631
@overload
16321632
def __add__(
16331633
self: Series[int], other: _T_COMPLEX | Sequence[_T_COMPLEX] | Series[_T_COMPLEX]
@@ -1639,8 +1639,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
16391639
@overload
16401640
def __add__(self: Series[int], other: np_ndarray_complex) -> Series[complex]: ...
16411641
@overload
1642-
def __add__(self: Series[float], other: Series[Never]) -> Series: ...
1643-
@overload
16441642
def __add__(
16451643
self: Series[float],
16461644
other: int | Sequence[int] | np_ndarray_anyint | np_ndarray_float | Series[int],
@@ -1653,8 +1651,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
16531651
@overload
16541652
def __add__(self: Series[float], other: np_ndarray_complex) -> Series[complex]: ...
16551653
@overload
1656-
def __add__(self: Series[complex], other: Series[Never]) -> Series: ...
1657-
@overload
16581654
def __add__(
16591655
self: Series[complex],
16601656
other: (

0 commit comments

Comments
 (0)