Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Oct 22, 2024
1 parent eb2ad11 commit c9cf81d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cf_xarray/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,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)] # type: ignore[misc]
return [obj[k] for k in func(obj, key)]

return cast(F, wrapper)

Expand Down
2 changes: 1 addition & 1 deletion cf_xarray/parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def computed_standard_name(self) -> str:
):
out_stdname = "height_above_geopotential_datum"
else:
raise ValueError(f"Unknown standard name: {out_stdname!r}")
raise ValueError(f"Unknown standard name: {ztop_stdname!r}")

return out_stdname

Expand Down

0 comments on commit c9cf81d

Please sign in to comment.