]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41517: do not allow Enums to be extended (GH-22271)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 16 Sep 2020 14:30:54 +0000 (07:30 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 14:30:54 +0000 (07:30 -0700)
commit3f4012117bf80aa7c005f8fa6fb8e1f8b1aef5d5
tree4d549f20692e4e5bc3eb3b4dbe12555aaa0b2687
parent929112ef81ccef20d3aef25c8a1142059ee941da
bpo-41517: do not allow Enums to be extended (GH-22271)

fix bug that let Enums be extended via multiple inheritance
(cherry picked from commit 3064dbf5df1021e85b507366a7ea448c8895efe7)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2020-09-15-22-43-30.bpo-41517.sLBH7g.rst [new file with mode: 0644]