]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 7 Jan 2021 21:17:55 +0000 (13:17 -0800)
committerGitHub <noreply@github.com>
Thu, 7 Jan 2021 21:17:55 +0000 (13:17 -0800)
commita581a868d97f649aedf868a1d27865a10925c73a
treee1c565332ea2e922618089b5c40493a92f7de9bf
parent8643345bdbd6bcf4b3b8b18abaf488f5fa361b7a
bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154)

Solution to support calls to `__init_subclass__` with members defined is too brittle and breaks with certain mixins.
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2021-01-07-11-44-22.bpo-42851.uyQFyd.rst [new file with mode: 0644]