Skip to content

Commit

Permalink
Revert unnecessary change.
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonspeed committed Sep 24, 2024
1 parent 3ddfbc6 commit 9f984ee
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions py-polars/polars/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,11 +1019,8 @@ def _arithmetic(self, other: Any, op_s: str, op_ffi: str) -> Self:
else:
return self._from_pyseries(getattr(self._s, op_s)(_s))
else:
dtype = self.dtype
while hasattr(dtype, "inner"):
dtype = dtype.inner
other = maybe_cast(other, dtype)
f = get_ffi_func(op_ffi, dtype, self._s)
other = maybe_cast(other, self.dtype)
f = get_ffi_func(op_ffi, self.dtype, self._s)
if f is None:
msg = (
f"cannot do arithmetic with Series of dtype: {self.dtype!r} and argument"
Expand Down

0 comments on commit 9f984ee

Please sign in to comment.