From f7246feecc0d90c72e537a4f3fe16b90e5d25d57 Mon Sep 17 00:00:00 2001 From: Michael Niklas Date: Tue, 12 Sep 2023 22:00:19 +0200 Subject: [PATCH] add more unused-ignore to error codes for old mpl --- xarray/plot/dataarray_plot.py | 14 +++++++------- xarray/plot/dataset_plot.py | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/xarray/plot/dataarray_plot.py b/xarray/plot/dataarray_plot.py index 67dee95d0ca..b549c7fa420 100644 --- a/xarray/plot/dataarray_plot.py +++ b/xarray/plot/dataarray_plot.py @@ -307,7 +307,7 @@ def plot( @overload -def line( # type: ignore[misc] # None is hashable :( +def line( # type: ignore[misc,unused-ignore] # None is hashable :( darray: DataArray, *args: Any, row: None = None, # no wrap -> primitive @@ -538,7 +538,7 @@ def line( @overload -def step( # type: ignore[misc] # None is hashable :( +def step( # type: ignore[misc,unused-ignore] # None is hashable :( darray: DataArray, *args: Any, where: Literal["pre", "post", "mid"] = "pre", @@ -1114,7 +1114,7 @@ def _add_labels( @overload -def scatter( # type: ignore[misc] # None is hashable :( +def scatter( # type: ignore[misc,unused-ignore] # None is hashable :( darray: DataArray, *args: Any, x: Hashable | None = None, @@ -1673,7 +1673,7 @@ def newplotfunc( @overload -def imshow( # type: ignore[misc] # None is hashable :( +def imshow( # type: ignore[misc,unused-ignore] # None is hashable :( darray: DataArray, x: Hashable | None = None, y: Hashable | None = None, @@ -1892,7 +1892,7 @@ def _center_pixels(x): @overload -def contour( # type: ignore[misc] # None is hashable :( +def contour( # type: ignore[misc,unused-ignore] # None is hashable :( darray: DataArray, x: Hashable | None = None, y: Hashable | None = None, @@ -2028,7 +2028,7 @@ def contour( @overload -def contourf( # type: ignore[misc] # None is hashable :( +def contourf( # type: ignore[misc,unused-ignore] # None is hashable :( darray: DataArray, x: Hashable | None = None, y: Hashable | None = None, @@ -2164,7 +2164,7 @@ def contourf( @overload -def pcolormesh( # type: ignore[misc] # None is hashable :( +def pcolormesh( # type: ignore[misc,unused-ignore] # None is hashable :( darray: DataArray, x: Hashable | None = None, y: Hashable | None = None, diff --git a/xarray/plot/dataset_plot.py b/xarray/plot/dataset_plot.py index 86b74105628..1ebb47d7949 100644 --- a/xarray/plot/dataset_plot.py +++ b/xarray/plot/dataset_plot.py @@ -321,7 +321,7 @@ def newplotfunc( @overload -def quiver( # type: ignore[misc] # None is hashable :( +def quiver( # type: ignore[misc,unused-ignore] # None is hashable :( ds: Dataset, *args: Any, x: Hashable | None = None, @@ -475,7 +475,7 @@ def quiver( @overload -def streamplot( # type: ignore[misc] # None is hashable :( +def streamplot( # type: ignore[misc,unused-ignore] # None is hashable :( ds: Dataset, *args: Any, x: Hashable | None = None, @@ -749,7 +749,7 @@ def _temp_dataarray(ds: Dataset, y: Hashable, locals_: dict[str, Any]) -> DataAr @overload -def scatter( # type: ignore[misc] # None is hashable :( +def scatter( # type: ignore[misc,unused-ignore] # None is hashable :( ds: Dataset, *args: Any, x: Hashable | None = None,