Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 23, 2024
1 parent 1ac134d commit be1a0d0
Showing 1 changed file with 24 additions and 48 deletions.
72 changes: 24 additions & 48 deletions xarray/plot/dataarray_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ def line( # type: ignore[misc,unused-ignore] # None is hashable :(
add_legend: bool = True,
_labels: bool = True,
**kwargs: Any,
) -> list[Line3D]:
...
) -> list[Line3D]: ...


@overload
Expand All @@ -361,8 +360,7 @@ def line(
add_legend: bool = True,
_labels: bool = True,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@overload
Expand All @@ -389,8 +387,7 @@ def line(
add_legend: bool = True,
_labels: bool = True,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


# This function signature should not change so that it can use
Expand Down Expand Up @@ -544,8 +541,7 @@ def step( # type: ignore[misc,unused-ignore] # None is hashable :(
row: None = None, # no wrap -> primitive
col: None = None, # no wrap -> primitive
**kwargs: Any,
) -> list[Line3D]:
...
) -> list[Line3D]: ...


@overload
Expand All @@ -558,8 +554,7 @@ def step(
row: Hashable, # wrap -> FacetGrid
col: Hashable | None = None,
**kwargs: Any,
) -> FacetGrid[DataArray]:
...
) -> FacetGrid[DataArray]: ...


@overload
Expand All @@ -572,8 +567,7 @@ def step(
row: Hashable | None = None,
col: Hashable, # wrap -> FacetGrid
**kwargs: Any,
) -> FacetGrid[DataArray]:
...
) -> FacetGrid[DataArray]: ...


def step(
Expand Down Expand Up @@ -1146,8 +1140,7 @@ def scatter( # type: ignore[misc,unused-ignore] # None is hashable :(
extend: ExtendOptions = None,
levels: ArrayLike | None = None,
**kwargs,
) -> PathCollection:
...
) -> PathCollection: ...


@overload
Expand Down Expand Up @@ -1188,8 +1181,7 @@ def scatter(
extend: ExtendOptions = None,
levels: ArrayLike | None = None,
**kwargs,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@overload
Expand Down Expand Up @@ -1230,8 +1222,7 @@ def scatter(
extend: ExtendOptions = None,
levels: ArrayLike | None = None,
**kwargs,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@_plot1d
Expand Down Expand Up @@ -1698,8 +1689,7 @@ def imshow( # type: ignore[misc,unused-ignore] # None is hashable :(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> AxesImage:
...
) -> AxesImage: ...


@overload
Expand Down Expand Up @@ -1739,8 +1729,7 @@ def imshow(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@overload
Expand Down Expand Up @@ -1780,8 +1769,7 @@ def imshow(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@_plot2d
Expand Down Expand Up @@ -1918,8 +1906,7 @@ def contour( # type: ignore[misc,unused-ignore] # None is hashable :(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> QuadContourSet:
...
) -> QuadContourSet: ...


@overload
Expand Down Expand Up @@ -1959,8 +1946,7 @@ def contour(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@overload
Expand Down Expand Up @@ -2000,8 +1986,7 @@ def contour(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@_plot2d
Expand Down Expand Up @@ -2054,8 +2039,7 @@ def contourf( # type: ignore[misc,unused-ignore] # None is hashable :(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> QuadContourSet:
...
) -> QuadContourSet: ...


@overload
Expand Down Expand Up @@ -2095,8 +2079,7 @@ def contourf(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@overload
Expand Down Expand Up @@ -2136,8 +2119,7 @@ def contourf(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@_plot2d
Expand Down Expand Up @@ -2190,8 +2172,7 @@ def pcolormesh( # type: ignore[misc,unused-ignore] # None is hashable :(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> QuadMesh:
...
) -> QuadMesh: ...


@overload
Expand Down Expand Up @@ -2231,8 +2212,7 @@ def pcolormesh(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@overload
Expand Down Expand Up @@ -2272,8 +2252,7 @@ def pcolormesh(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@_plot2d
Expand Down Expand Up @@ -2377,8 +2356,7 @@ def surface(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> Poly3DCollection:
...
) -> Poly3DCollection: ...


@overload
Expand Down Expand Up @@ -2418,8 +2396,7 @@ def surface(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@overload
Expand Down Expand Up @@ -2459,8 +2436,7 @@ def surface(
ylim: ArrayLike | None = None,
norm: Normalize | None = None,
**kwargs: Any,
) -> FacetGrid[T_DataArray]:
...
) -> FacetGrid[T_DataArray]: ...


@_plot2d
Expand Down

0 comments on commit be1a0d0

Please sign in to comment.