Skip to content

Commit 52653bd

Browse files
committed
Expand the T_Chunks type definition to include a option
1 parent 5379b4a commit 52653bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xarray/core/types.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ def copy(
217217
T_ChunkDimFreq: TypeAlias = Union["TimeResampler", T_ChunkDim]
218218
T_ChunksFreq: TypeAlias = T_ChunkDim | Mapping[Any, T_ChunkDimFreq]
219219
# We allow the tuple form of this (though arguably we could transition to named dims only)
220-
T_Chunks: TypeAlias = T_ChunkDim | Mapping[Any, T_ChunkDim]
220+
T_Chunks: TypeAlias = (
221+
T_ChunkDim | Mapping[Any, T_ChunkDim] | Mapping[Any, Mapping[Any, T_ChunkDim]]
222+
)
221223
T_NormalizedChunks = tuple[tuple[int, ...], ...]
222224

223225
DataVars = Mapping[Any, Any]

0 commit comments

Comments
 (0)