Skip to content

Commit b5207aa

Browse files
headtr1ckIllviljandcherian
authored
Typing of GroupBy & Co. (#6702)
Co-authored-by: Illviljan <[email protected]> Co-authored-by: Deepak Cherian <[email protected]>
1 parent b6df680 commit b5207aa

16 files changed

+1427
-754
lines changed

doc/whats-new.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ New Features
2626
:py:meth:`DataArrayCoordinates.dtypes` properties: Mapping from variable names to dtypes.
2727
(:pull:`6706`)
2828
By `Michael Niklas <https://github.com/headtr1ck>`_.
29+
- Initial typing support for :py:meth:`groupby`, :py:meth:`rolling`, :py:meth:`rolling_exp`,
30+
:py:meth:`coarsen`, :py:meth:`weighted`, :py:meth:`resample`,
31+
(:pull:`6702`)
32+
By `Michael Niklas <https://github.com/headtr1ck>`_.
2933

3034
Deprecations
3135
~~~~~~~~~~~~

xarray/core/alignment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def _normalize_indexes(
215215
normalized_index_vars = {}
216216
for idx, index_vars in Indexes(xr_indexes, xr_variables).group_by_index():
217217
coord_names_and_dims = []
218-
all_dims = set()
218+
all_dims: set[Hashable] = set()
219219

220220
for name, var in index_vars.items():
221221
dims = var.dims

0 commit comments

Comments
 (0)