Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 7, 2023
1 parent d883b7c commit a6e338b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lightning_utilities/core/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def from_str(
return cls[enum_key]

warnings.warn(UserWarning(f"Invalid string: expected one of {allowed}, but got {value}."))
return None

@classmethod
def _allowed_matches(cls, source) -> list:
Expand Down

0 comments on commit a6e338b

Please sign in to comment.