]> 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:35:14 +0000 (07:35 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 14:35:14 +0000 (07:35 -0700)
commit48f99250ff319e36b15b555128cd62e408d8165f
treeb2d3308cfff3bce8a0e83a999ad8b074baa99ce5
parent6a39888c2c4bcfbcdc61a1953911ad30c62da1ef
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]