We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d63f079 commit 87e5341Copy full SHA for 87e5341
pyoverkiz/enums/base.py
@@ -18,7 +18,7 @@ class UnknownEnumMixin:
18
@classmethod
19
def _missing_(cls, value: object) -> Self:
20
"""Return `UNKNOWN` and log unrecognized values."""
21
- message = getattr(cls, "__missing_message__", cls.__missing_message__)
+ message = cls.__missing_message__
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]
0 commit comments