@@ -1920,22 +1920,35 @@ class Series(IndexOpsMixin[S1], NDFrame):
19201920 def __rsub__ (self , other : num | _ListLike | Series [S1 ]) -> Series : ...
19211921 @overload
19221922 def __rtruediv__ (
1923- self : Series [Never ], other : num | _ListLike | Series | Path
1923+ self : Series [Never ], other : Path | Scalar | _ListLike
19241924 ) -> Series : ...
19251925 @overload
19261926 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 ,
19281929 ) -> Series [float ]: ...
19291930 @overload
19301931 def __rtruediv__ (
19311932 self : Series [int ], other : _T_COMPLEX | Sequence [_T_COMPLEX ]
19321933 ) -> Series [_T_COMPLEX ]: ...
19331934 @overload
1935+ def __rtruediv__ (
1936+ self : Series [int ], other : np_ndarray_complex
1937+ ) -> Series [complex ]: ...
1938+ @overload
19341939 def __rtruediv__ (
19351940 self : Series [float ],
19361941 other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float ,
19371942 ) -> Series [float ]: ...
19381943 @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
19391952 def __rtruediv__ (
19401953 self : Series [complex ],
19411954 other : (
@@ -1947,11 +1960,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
19471960 ),
19481961 ) -> Series [complex ]: ...
19491962 @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 : ...
19551964 # ignore needed for mypy as we want different results based on the arguments
19561965 @overload # type: ignore[override]
19571966 def __rxor__ ( # pyright: ignore[reportOverlappingOverload]
@@ -2527,7 +2536,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
25272536 @overload
25282537 def rtruediv (
25292538 self : Series [Never ],
2530- other : Scalar | _ListLike | Series ,
2539+ other : Path | Scalar | _ListLike | Series ,
25312540 level : Level | None = ...,
25322541 fill_value : float | None = ...,
25332542 axis : AxisIndex = ...,
@@ -2598,7 +2607,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
25982607 @overload
25992608 def rtruediv (
26002609 self ,
2601- other : Scalar | _ListLike | Series ,
2610+ other : Path ,
26022611 level : Level | None = ...,
26032612 fill_value : float | None = ...,
26042613 axis : AxisIndex = ...,
0 commit comments