diff --git a/cf_xarray/accessor.py b/cf_xarray/accessor.py index 557352ca..6319f79f 100644 --- a/cf_xarray/accessor.py +++ b/cf_xarray/accessor.py @@ -24,6 +24,10 @@ import xarray as xr from xarray import DataArray, Dataset from xarray.core.arithmetic import SupportsArithmetic +from xarray.core.groupby import GroupBy +from xarray.core.resample import Resample +from xarray.core.rolling import Coarsen, Rolling +from xarray.core.weighted import Weighted from .criteria import cf_role_criteria, coordinate_criteria, regex from .helpers import bounds_to_vertices @@ -38,13 +42,7 @@ ) #: Classes wrapped by cf_xarray. -_WRAPPED_CLASSES = ( - xr.core.resample.Resample, - xr.core.groupby.GroupBy, - xr.core.rolling.Rolling, - xr.core.rolling.Coarsen, - xr.core.weighted.Weighted, -) +_WRAPPED_CLASSES = (Resample, GroupBy, Rolling, Coarsen, Weighted) #: `axis` names understood by cf_xarray _AXIS_NAMES = ("X", "Y", "Z", "T")