Skip to content

Commit 564ebbf

Browse files
iMicknlCopilot
andauthored
Update pyoverkiz/enums/base.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 90641c9 commit 564ebbf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pyoverkiz/enums/base.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,3 @@ def _missing_(cls, value: object) -> Self:
2222
logging.getLogger(cls.__module__).warning(message, value, cls)
2323
# Type checker cannot infer UNKNOWN exists on Self, but all subclasses define it
2424
return cast(Self, cls.UNKNOWN) # type: ignore[attr-defined]
25-
26-
@classmethod
27-
def from_value(cls: type[Self], value: object) -> Self:
28-
"""Return enum for `value`, falling back to `UNKNOWN`."""
29-
return cast(Self, cast(Any, cls)(value))

0 commit comments

Comments
 (0)