Skip to content

Commit af31fcb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 52c4727 commit af31fcb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

xarray/core/types.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ def copy(
200200

201201
# FYI in some cases we don't allow `None`, which this doesn't take account of.
202202
# 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
206204
T_ChunkDimFreq: TypeAlias = Union["TimeResampler", T_ChunkDim]
207205
T_ChunksFreq: TypeAlias = T_ChunkDim | Mapping[Any, T_ChunkDimFreq]
208206
# We allow the tuple form of this (though arguably we could transition to named dims only)

xarray/plot/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
from xarray.core.dataarray import DataArray
4646
from xarray.core.dataset import Dataset
47-
from xarray.core.types import AspectOptions, ScaleOptions, NormOptions
47+
from xarray.core.types import AspectOptions, NormOptions, ScaleOptions
4848

4949
try:
5050
import matplotlib.pyplot as plt
@@ -70,7 +70,7 @@ def _make_norm_from_string(
7070
<class 'matplotlib.colors.LogScaleNorm'>
7171
7272
"""
73-
from matplotlib.colors import make_norm_from_scale, Normalize
73+
from matplotlib.colors import Normalize, make_norm_from_scale
7474
from matplotlib.scale import scale_factory
7575

7676
scale = type(scale_factory(norm, None)) # type: ignore [arg-type] # mpl issue, use of ax is discouraged

0 commit comments

Comments
 (0)