From 73a3103b9769b433ae5f433a843420b34512d911 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Tue, 19 Sep 2023 01:30:59 -0700 Subject: [PATCH] feedback --- xarray/core/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xarray/core/common.py b/xarray/core/common.py index ade701457c6..06a291932a7 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -46,6 +46,7 @@ DTypeLikeSave, ScalarOrArray, SideOptions, + Self, T_Chunks, T_DataWithCoords, T_Variable, @@ -810,11 +811,11 @@ def pipe( return func(self, *args, **kwargs) def rolling_exp( - self: T_DataWithCoords, + self, window: Mapping[Any, int] | None = None, window_type: str = "span", **window_kwargs, - ) -> RollingExp[T_DataWithCoords]: + ) -> RollingExp[Self]: """ Exponentially-weighted moving window. Similar to EWM in pandas