Skip to content

Commit 46643bb

Browse files
authored
Fix GroupBy import (#8286)
1 parent 129c4ac commit 46643bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xarray/tests/test_units.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,13 @@ def __call__(self, obj, *args, **kwargs):
305305
all_args = merge_args(self.args, args)
306306
all_kwargs = {**self.kwargs, **kwargs}
307307

308+
from xarray.core.groupby import GroupBy
309+
308310
xarray_classes = (
309311
xr.Variable,
310312
xr.DataArray,
311313
xr.Dataset,
312-
xr.core.groupby.GroupBy,
314+
GroupBy,
313315
)
314316

315317
if not isinstance(obj, xarray_classes):

0 commit comments

Comments
 (0)