Skip to content
Prev Previous commit
Next Next commit
fix(typing): div and rdiv
  • Loading branch information
cmp0xff committed Aug 1, 2025
commit d02638b7d8aa6609c76aa296a040e533fb85328e
14 changes: 3 additions & 11 deletions pandas-stubs/core/series.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
@overload
def div(
self: Series[Never],
other: Scalar | _ListLike | Series,
other: Path | Scalar | _ListLike | Series,
level: Level | None = ...,
fill_value: float | None = ...,
axis: AxisIndex = ...,
Expand Down Expand Up @@ -509,17 +509,9 @@ class Series(IndexOpsMixin[S1], NDFrame):
axis: AxisIndex = ...,
) -> Series[complex]: ...
@overload
def div(
self,
other: Scalar | _ListLike | Series,
level: Level | None = ...,
fill_value: float | None = ...,
axis: AxisIndex = ...,
) -> Series: ...
@overload
def rdiv(
self: Series[Never],
other: Scalar | _ListLike | Series,
other: Path | Scalar | _ListLike | Series,
level: Level | None = ...,
fill_value: float | None = ...,
axis: AxisIndex = ...,
Expand Down Expand Up @@ -598,7 +590,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
@overload
def rdiv(
self,
other: Scalar | _ListLike | Series,
other: Path,
level: Level | None = ...,
fill_value: float | None = ...,
axis: AxisIndex = ...,
Expand Down