Skip to content

Commit

Permalink
add more unused-ignore to error codes for old mpl
Browse files Browse the repository at this point in the history
  • Loading branch information
headtr1ck committed Sep 12, 2023
1 parent 1eef361 commit f7246fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions xarray/plot/dataarray_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions xarray/plot/dataset_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f7246fe

Please sign in to comment.