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
5 changes: 4 additions & 1 deletion cf_xarray/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2727,7 +2727,9 @@ def grid_mapping_names(self) -> dict[str, list[str]]:
results[v].append(k)
return results

def decode_vertical_coords(self, *, outnames=None, prefix=None):
def decode_vertical_coords(
self, *, outnames: dict[str, str] | None = None, prefix: str | None = None
) -> None:
"""
Decode parameterized vertical coordinates in place.

Expand Down Expand Up @@ -2765,6 +2767,7 @@ def decode_vertical_coords(self, *, outnames=None, prefix=None):
allterms = self.formula_terms

for dim in allterms:
dim = cast(str, dim)
if prefix is None:
assert outnames is not None, (
"if prefix is None, outnames must be provided"
Expand Down
2 changes: 1 addition & 1 deletion cf_xarray/parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def from_terms(cls, terms: dict):
return cls(**get_terms(terms, "sigma", "depth", "z1", "z2", "a", "href", "k_c"))


TRANSFORM_FROM_STDNAME = {
TRANSFORM_FROM_STDNAME: dict[str, type[ParametricVerticalCoordinate]] = {
"atmosphere_ln_pressure_coordinate": AtmosphereLnPressure,
"atmosphere_sigma_coordinate": AtmosphereSigma,
"atmosphere_hybrid_sigma_pressure_coordinate": AtmosphereHybridSigmaPressure,
Expand Down
Loading