diff --git a/py-polars/polars/expr/expr.py b/py-polars/polars/expr/expr.py index e5fe2450e73e..5cbe63ea4169 100644 --- a/py-polars/polars/expr/expr.py +++ b/py-polars/polars/expr/expr.py @@ -7657,7 +7657,7 @@ def rolling_mean( @unstable() def rolling_sum( self, - window_size: int | timedelta, + window_size: int, weights: list[float] | None = None, *, min_periods: int | None = None, @@ -7768,7 +7768,7 @@ def rolling_sum( @unstable() def rolling_std( self, - window_size: int | timedelta, + window_size: int, weights: list[float] | None = None, *, min_periods: int | None = None, @@ -7883,7 +7883,7 @@ def rolling_std( @unstable() def rolling_var( self, - window_size: int | timedelta, + window_size: int, weights: list[float] | None = None, *, min_periods: int | None = None, @@ -7998,7 +7998,7 @@ def rolling_var( @unstable() def rolling_median( self, - window_size: int | timedelta, + window_size: int, weights: list[float] | None = None, *, min_periods: int | None = None, @@ -8111,7 +8111,7 @@ def rolling_quantile( self, quantile: float, interpolation: RollingInterpolationMethod = "nearest", - window_size: int | timedelta = 2, + window_size: int = 2, weights: list[float] | None = None, *, min_periods: int | None = None,