Skip to content

Commit b36a049

Browse files
committed
Update type of _get_output_dim_selector
1 parent b98ab3a commit b36a049

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray/core/rolling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import functools
22
import itertools
33
import warnings
4-
from typing import Any, Callable, Dict
4+
from typing import Any, Callable, Dict, Hashable
55

66
import numpy as np
77

@@ -208,7 +208,7 @@ def _get_keep_attrs(self, keep_attrs):
208208

209209
return keep_attrs
210210

211-
def _get_output_dim_selector(self) -> Dict[str, Any]:
211+
def _get_output_dim_selector(self) -> Dict[Hashable, Any]:
212212
"""Get output dimension selector, taking into account window size, window, centering, and padding.
213213
214214
If any of the dimensions are not padded, the output size can be shorter than the input size
@@ -229,7 +229,7 @@ def offsets_to_slice(start_offset: int, end_offset: int) -> slice:
229229
offset = [not p for p in self.pad]
230230
offsets = utils.get_pads(self.dim, self.window, self.center, offset)
231231

232-
selector: Dict[str, slice] = {
232+
selector: Dict[Hashable, slice] = {
233233
dim: offsets_to_slice(start_offset, end_offset)
234234
for dim, (start_offset, end_offset) in offsets.items()
235235
}

0 commit comments

Comments
 (0)