Skip to content

Commit 2ef5387

Browse files
authored
fix mypy (#541)
1 parent f075675 commit 2ef5387

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cf_xarray/accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def _get_coords(obj: DataArray | Dataset, key: Hashable) -> list[Hashable]:
537537
def _variables(func: F) -> F:
538538
@functools.wraps(func)
539539
def wrapper(obj: DataArray | Dataset, key: Hashable) -> list[DataArray]:
540-
return [obj[k] for k in func(obj, key)] # type: ignore[misc]
540+
return [obj[k] for k in func(obj, key)]
541541

542542
return cast(F, wrapper)
543543

cf_xarray/parametric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def computed_standard_name(self) -> str:
409409
):
410410
out_stdname = "height_above_geopotential_datum"
411411
else:
412-
raise ValueError(f"Unknown standard name: {out_stdname!r}")
412+
raise ValueError(f"Unknown standard name: {ztop_stdname!r}")
413413

414414
return out_stdname
415415

0 commit comments

Comments
 (0)