Skip to content

Commit 4be743c

Browse files
committed
try again
1 parent 8ce9d0a commit 4be743c

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

cf_xarray/accessor.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,22 @@
2828
from xarray.core.resample import Resample
2929

3030
try:
31-
from xarray.core.rolling import Coarsen, Rolling
31+
from xarray.core.rolling import ( # type:ignore[import-not-found,no-redef]
32+
Coarsen,
33+
Rolling,
34+
)
3235
except ImportError:
33-
from xarray.computation.rolling import Coarsen, Rolling
36+
from xarray.computation.rolling import ( # type:ignore[import-not-found,no-redef]
37+
Coarsen,
38+
Rolling,
39+
)
3440

3541
try:
36-
from xarray.core.weighted import Weighted
42+
from xarray.core.weighted import Weighted # type:ignore[import-not-found,no-redef]
3743
except ImportError:
38-
from xarray.computation.weighted import Weighted
44+
from xarray.computation.weighted import (
45+
Weighted, # type:ignore[import-not-found,no-redef]
46+
)
3947

4048

4149
from . import parametric, sgrid

0 commit comments

Comments
 (0)