Skip to content

Commit 5cc4ec5

Browse files
committed
fix: reduce TypeVar usage 4245375
1 parent 4245375 commit 5cc4ec5

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

pandas-stubs/core/series.pyi

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,8 +1652,8 @@ class Series(IndexOpsMixin[S1], NDFrame):
16521652
def __add__(
16531653
self: Series[float],
16541654
other: (
1655-
_T_INT
1656-
| Sequence[_T_INT]
1655+
int
1656+
| Sequence[int]
16571657
| np_ndarray_bool
16581658
| np_ndarray_anyint
16591659
| np_ndarray_float
@@ -1767,8 +1767,8 @@ class Series(IndexOpsMixin[S1], NDFrame):
17671767
def add(
17681768
self: Series[float],
17691769
other: (
1770-
_T_INT
1771-
| Sequence[_T_INT]
1770+
int
1771+
| Sequence[int]
17721772
| np_ndarray_bool
17731773
| np_ndarray_anyint
17741774
| np_ndarray_float
@@ -1848,11 +1848,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
18481848
def __radd__(
18491849
self: Series[float],
18501850
other: (
1851-
_T_INT
1852-
| Sequence[_T_INT]
1853-
| np_ndarray_bool
1854-
| np_ndarray_anyint
1855-
| np_ndarray_float
1851+
int | Sequence[int] | np_ndarray_bool | np_ndarray_anyint | np_ndarray_float
18561852
),
18571853
) -> Series[float]: ...
18581854
@overload
@@ -1960,8 +1956,8 @@ class Series(IndexOpsMixin[S1], NDFrame):
19601956
def radd(
19611957
self: Series[float],
19621958
other: (
1963-
_T_INT
1964-
| Sequence[_T_INT]
1959+
int
1960+
| Sequence[int]
19651961
| np_ndarray_bool
19661962
| np_ndarray_anyint
19671963
| np_ndarray_float

0 commit comments

Comments
 (0)