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

Solution to support calls to `__init_subclass__` with members defined is too brittle and breaks with certain mixins..
(cherry picked from commit a581a868d97f649aedf868a1d27865a10925c73a)
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]