Steven D'Aprano <[email protected]> added the comment:
The documentation says: "Allowing subclassing of enums that define members would lead to a violation of some important invariants of types and instances." but it isn't clear what those invariants are, or why it is more of a problem for enums than any other subclassing situation. Could the docs be updated to explain why it is prohibited? ---------- nosy: +steven.daprano title: Enum multiple inheritance loophole -> Able to subclass enum with members by using multiple inheritance _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue41517> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
