Skip to content

Commit 7cabb19

Browse files
author
shirzady1934
committed
issue 1098 added type support for complex in Series __add__ operator
1 parent 7328e89 commit 7cabb19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas-stubs/core/series.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,8 @@ class Series(IndexOpsMixin[S1], NDFrame):
15791579
@overload
15801580
def __add__(self, other: S1 | Self) -> Self: ...
15811581
@overload
1582+
def __add__(self, other: complex) -> Series[complex]: ...
1583+
@overload
15821584
def __add__(
15831585
self,
15841586
other: num | _str | timedelta | Timedelta | _ListLike | Series | np.timedelta64,

0 commit comments

Comments
 (0)