File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ module = [
91
91
" cf_units.*" ,
92
92
" cfgrib.*" ,
93
93
" cftime.*" ,
94
+ " cloudpickle.*" ,
94
95
" cubed.*" ,
95
96
" cupy.*" ,
96
97
" dask.types.*" ,
Original file line number Diff line number Diff line change 14
14
from xarray .core .dataset import Dataset
15
15
from xarray .core .merge import merge
16
16
from xarray .core .pycompat import is_dask_collection
17
+ from xarray .core .variable import Variable
17
18
18
19
if TYPE_CHECKING :
19
20
from xarray .core .types import T_Xarray
@@ -290,8 +291,9 @@ def _wrapper(
290
291
f"Expected length { expected ['shapes' ][name ]} ."
291
292
)
292
293
294
+ # ChainMap wants MutableMapping, but xindexes is Mapping
293
295
merged_indexes = collections .ChainMap (
294
- expected ["indexes" ], merged_coordinates .xindexes
296
+ expected ["indexes" ], merged_coordinates .xindexes # type: ignore[arg-type]
295
297
)
296
298
expected_index = merged_indexes .get (name , None )
297
299
if expected_index is not None and not index .equals (expected_index ):
@@ -467,6 +469,7 @@ def subset_dataset_to_block(
467
469
468
470
chunk_tuple = tuple (chunk_index .values ())
469
471
chunk_dims_set = set (chunk_index )
472
+ variable : Variable
470
473
for name , variable in dataset .variables .items ():
471
474
# make a task that creates tuple of (dims, chunk)
472
475
if dask .is_dask_collection (variable .data ):
You can’t perform that action at this time.
0 commit comments