Skip to content

Commit 0784786

Browse files
committed
fix(comment): #1275 (comment)
1 parent fd4cedc commit 0784786

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
@@ -1590,7 +1590,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
15901590
other: num | _str | timedelta | Timedelta | _ListLike | Series | np.timedelta64,
15911591
) -> Series: ...
15921592
@overload
1593-
def __add__(self: Series[int], other: Series[Never]) -> Series: ...
1593+
def __add__(self: Series, other: Series[Never]) -> Series: ...
15941594
@overload
15951595
def __add__(
15961596
self: Series[int], other: _T_COMPLEX | Sequence[_T_COMPLEX] | Series[_T_COMPLEX]
@@ -1602,8 +1602,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
16021602
@overload
16031603
def __add__(self: Series[int], other: np_ndarray_complex) -> Series[complex]: ...
16041604
@overload
1605-
def __add__(self: Series[float], other: Series[Never]) -> Series: ...
1606-
@overload
16071605
def __add__(
16081606
self: Series[float],
16091607
other: int | Sequence[int] | np_ndarray_anyint | np_ndarray_float | Series[int],
@@ -1616,8 +1614,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
16161614
@overload
16171615
def __add__(self: Series[float], other: np_ndarray_complex) -> Series[complex]: ...
16181616
@overload
1619-
def __add__(self: Series[complex], other: Series[Never]) -> Series: ...
1620-
@overload
16211617
def __add__(
16221618
self: Series[complex],
16231619
other: (

0 commit comments

Comments
 (0)