Skip to content

Commit

Permalink
Fix GroupBy import (#8286)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty authored Oct 9, 2023
1 parent 129c4ac commit 46643bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xarray/tests/test_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,13 @@ def __call__(self, obj, *args, **kwargs):
all_args = merge_args(self.args, args)
all_kwargs = {**self.kwargs, **kwargs}

from xarray.core.groupby import GroupBy

xarray_classes = (
xr.Variable,
xr.DataArray,
xr.Dataset,
xr.core.groupby.GroupBy,
GroupBy,
)

if not isinstance(obj, xarray_classes):
Expand Down

0 comments on commit 46643bb

Please sign in to comment.