Skip to content

Commit

Permalink
revert regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Aug 23, 2024
1 parent 8e06ef2 commit 0523255
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xclim/core/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ def convert_units_to( # noqa: C901
raise NotImplementedError(f"Source of type `{type(source)}` is not supported.")


def cf_conversion(standard_name: str, conversion: str, direction: str) -> str | None:
def cf_conversion(
standard_name: str, conversion: str, direction: Literal["to", "from"]
) -> str | None:
"""Get the standard name of the specific conversion for the given standard name.
Parameters
Expand Down

0 comments on commit 0523255

Please sign in to comment.