@@ -1920,22 +1920,35 @@ class Series(IndexOpsMixin[S1], NDFrame):
1920
1920
def __rsub__ (self , other : num | _ListLike | Series [S1 ]) -> Series : ...
1921
1921
@overload
1922
1922
def __rtruediv__ (
1923
- self : Series [Never ], other : num | _ListLike | Series | Path
1923
+ self : Series [Never ], other : Path | Scalar | _ListLike
1924
1924
) -> Series : ...
1925
1925
@overload
1926
1926
def __rtruediv__ (
1927
- self : Series [int ], other : int | Sequence [int ]
1927
+ self : Series [int ],
1928
+ other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float ,
1928
1929
) -> Series [float ]: ...
1929
1930
@overload
1930
1931
def __rtruediv__ (
1931
1932
self : Series [int ], other : _T_COMPLEX | Sequence [_T_COMPLEX ]
1932
1933
) -> Series [_T_COMPLEX ]: ...
1933
1934
@overload
1935
+ def __rtruediv__ (
1936
+ self : Series [int ], other : np_ndarray_complex
1937
+ ) -> Series [complex ]: ...
1938
+ @overload
1934
1939
def __rtruediv__ (
1935
1940
self : Series [float ],
1936
1941
other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float ,
1937
1942
) -> Series [float ]: ...
1938
1943
@overload
1944
+ def __rtruediv__ (
1945
+ self : Series [float ], other : _T_COMPLEX | Sequence [_T_COMPLEX ]
1946
+ ) -> Series [_T_COMPLEX ]: ...
1947
+ @overload
1948
+ def __rtruediv__ (
1949
+ self : Series [float ], other : np_ndarray_complex
1950
+ ) -> Series [complex ]: ...
1951
+ @overload
1939
1952
def __rtruediv__ (
1940
1953
self : Series [complex ],
1941
1954
other : (
@@ -1947,11 +1960,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1947
1960
),
1948
1961
) -> Series [complex ]: ...
1949
1962
@overload
1950
- def __rtruediv__ (
1951
- self : Series [float ], other : _T_COMPLEX | Sequence [_T_COMPLEX ]
1952
- ) -> Series [_T_COMPLEX ]: ...
1953
- @overload
1954
- def __rtruediv__ (self , other : num | _ListLike | Series [S1 ] | Path ) -> Series : ...
1963
+ def __rtruediv__ (self , other : Path ) -> Series : ...
1955
1964
# ignore needed for mypy as we want different results based on the arguments
1956
1965
@overload # type: ignore[override]
1957
1966
def __rxor__ ( # pyright: ignore[reportOverlappingOverload]
@@ -2527,7 +2536,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2527
2536
@overload
2528
2537
def rtruediv (
2529
2538
self : Series [Never ],
2530
- other : Scalar | _ListLike | Series ,
2539
+ other : Path | Scalar | _ListLike | Series ,
2531
2540
level : Level | None = ...,
2532
2541
fill_value : float | None = ...,
2533
2542
axis : AxisIndex = ...,
@@ -2598,7 +2607,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
2598
2607
@overload
2599
2608
def rtruediv (
2600
2609
self ,
2601
- other : Scalar | _ListLike | Series ,
2610
+ other : Path ,
2602
2611
level : Level | None = ...,
2603
2612
fill_value : float | None = ...,
2604
2613
axis : AxisIndex = ...,
0 commit comments