We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90641c9 commit 564ebbfCopy full SHA for 564ebbf
pyoverkiz/enums/base.py
@@ -22,8 +22,3 @@ def _missing_(cls, value: object) -> Self:
22
logging.getLogger(cls.__module__).warning(message, value, cls)
23
# Type checker cannot infer UNKNOWN exists on Self, but all subclasses define it
24
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