]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42727: [Enum] use super() and include **kwds (GH-23927)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 25 Dec 2020 16:07:30 +0000 (08:07 -0800)
committerGitHub <noreply@github.com>
Fri, 25 Dec 2020 16:07:30 +0000 (08:07 -0800)
commitfbffda25b4b5f537e651eaab4ca1ec4cde800709
treeb054bdf1899ed0a623bfa94b012758a0a9a33493
parent51f502914656a1f8e8ffdf6e1b06f670d8fea8ed
bpo-42727: [Enum] use super() and include **kwds (GH-23927)

for multiple inheritance support:

use super().new
pass **kwds to super().new
(cherry picked from commit 786d97a66cac48e7a933010367b8993a5b3ab85b)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Lib/enum.py