Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading