File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -200,9 +200,7 @@ def copy(
200
200
201
201
# FYI in some cases we don't allow `None`, which this doesn't take account of.
202
202
# FYI the `str` is for a size string, e.g. "16MB", supported by dask.
203
- T_ChunkDim : TypeAlias = (
204
- str | int | Literal ["auto" ] | tuple [int , ...] | None
205
- ) # noqa: PYI051
203
+ T_ChunkDim : TypeAlias = str | int | Literal ["auto" ] | tuple [int , ...] | None
206
204
T_ChunkDimFreq : TypeAlias = Union ["TimeResampler" , T_ChunkDim ]
207
205
T_ChunksFreq : TypeAlias = T_ChunkDim | Mapping [Any , T_ChunkDimFreq ]
208
206
# 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 44
44
45
45
from xarray .core .dataarray import DataArray
46
46
from xarray .core .dataset import Dataset
47
- from xarray .core .types import AspectOptions , ScaleOptions , NormOptions
47
+ from xarray .core .types import AspectOptions , NormOptions , ScaleOptions
48
48
49
49
try :
50
50
import matplotlib .pyplot as plt
@@ -70,7 +70,7 @@ def _make_norm_from_string(
70
70
<class 'matplotlib.colors.LogScaleNorm'>
71
71
72
72
"""
73
- from matplotlib .colors import make_norm_from_scale , Normalize
73
+ from matplotlib .colors import Normalize , make_norm_from_scale
74
74
from matplotlib .scale import scale_factory
75
75
76
76
scale = type (scale_factory (norm , None )) # type: ignore [arg-type] # mpl issue, use of ax is discouraged
You can’t perform that action at this time.
0 commit comments