Skip to content

Commit 87e5341

Browse files
iMicknlCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d63f079 commit 87e5341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyoverkiz/enums/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class UnknownEnumMixin:
1818
@classmethod
1919
def _missing_(cls, value: object) -> Self:
2020
"""Return `UNKNOWN` and log unrecognized values."""
21-
message = getattr(cls, "__missing_message__", cls.__missing_message__)
21+
message = cls.__missing_message__
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]

0 commit comments

Comments
 (0)