diff --git a/xarray/core/common.py b/xarray/core/common.py index 06a291932a7..ade701457c6 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -46,7 +46,6 @@ DTypeLikeSave, ScalarOrArray, SideOptions, - Self, T_Chunks, T_DataWithCoords, T_Variable, @@ -811,11 +810,11 @@ def pipe( return func(self, *args, **kwargs) def rolling_exp( - self, + self: T_DataWithCoords, window: Mapping[Any, int] | None = None, window_type: str = "span", **window_kwargs, - ) -> RollingExp[Self]: + ) -> RollingExp[T_DataWithCoords]: """ Exponentially-weighted moving window. Similar to EWM in pandas