Skip to content

Commit

Permalink
more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Dec 5, 2023
1 parent 0e382f7 commit df26719
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cf_xarray/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def _get_coords(obj: DataArray | Dataset, key: Hashable) -> list[Hashable]:
def _variables(func: F) -> F:
@functools.wraps(func)
def wrapper(obj: DataArray | Dataset, key: Hashable) -> list[DataArray]:
return [obj[k] for k in func(obj, key)]
return [obj[k] for k in func(obj, key)] # type: ignore[misc]

return cast(F, wrapper)

Expand Down Expand Up @@ -1116,7 +1116,7 @@ def _assert_valid_other_comparison(self, other):
)
return flag_dict

def __eq__(self, other) -> DataArray:
def __eq__(self, other) -> DataArray: # type: ignore[override]
"""
Compare flag values against `other`.
Expand All @@ -1126,7 +1126,7 @@ def __eq__(self, other) -> DataArray:
"""
return self._extract_flags([other])[other].rename(self._obj.name)

def __ne__(self, other) -> DataArray:
def __ne__(self, other) -> DataArray: # type: ignore[override]
"""
Compare flag values against `other`.
Expand Down

0 comments on commit df26719

Please sign in to comment.