File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 71
71
T_NetcdfEngine = Literal ["netcdf4" , "scipy" , "h5netcdf" ]
72
72
T_Engine = Union [
73
73
T_NetcdfEngine ,
74
- Literal ["pydap" , "zarr" ],
74
+ Literal ["pydap" , "zarr" ], # noqa: PYI051
75
75
type [BackendEntrypoint ],
76
76
str , # no nice typing support for custom backends
77
77
None ,
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ def copy(
214
214
215
215
# FYI in some cases we don't allow `None`, which this doesn't take account of.
216
216
# FYI the `str` is for a size string, e.g. "16MB", supported by dask.
217
- T_ChunkDim : TypeAlias = str | int | Literal ["auto" ] | None | tuple [int , ...]
217
+ T_ChunkDim : TypeAlias = int | Literal ["auto" ] | None | tuple [int , ...]
218
218
T_ChunkDimFreq : TypeAlias = Union ["TimeResampler" , T_ChunkDim ]
219
219
T_ChunksFreq : TypeAlias = T_ChunkDim | Mapping [Any , T_ChunkDimFreq ]
220
220
# We allow the tuple form of this (though arguably we could transition to named dims only)
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def dtype(self) -> _DType_co: ...
78
78
_NormalizedChunks = tuple [tuple [int , ...], ...]
79
79
# FYI in some cases we don't allow `None`, which this doesn't take account of.
80
80
# # FYI the `str` is for a size string, e.g. "16MB", supported by dask.
81
- T_ChunkDim : TypeAlias = str | int | Literal ["auto" ] | None | tuple [int , ...]
81
+ T_ChunkDim : TypeAlias = int | Literal ["auto" ] | None | tuple [int , ...]
82
82
# We allow the tuple form of this (though arguably we could transition to named dims only)
83
83
T_Chunks : TypeAlias = T_ChunkDim | Mapping [Any , T_ChunkDim ]
84
84
You can’t perform that action at this time.
0 commit comments