summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2020-12-24 18:05:02 (GMT)
committerGitHub <noreply@github.com>2020-12-24 18:05:02 (GMT)
commit6ec0adefad60ec7cdec61c44baecf1dccc1461ab (patch)
tree4063790397c109ba244d9c7615b351651512c401 /Lib/enum.py
parent7ec59d8861ef1104c3028678b2cacde4c5693e19 (diff)
downloadcpython-6ec0adefad60ec7cdec61c44baecf1dccc1461ab.zip
cpython-6ec0adefad60ec7cdec61c44baecf1dccc1461ab.tar.gz
cpython-6ec0adefad60ec7cdec61c44baecf1dccc1461ab.tar.bz2
[Enum] EnumMeta.__prepare__ now accepts **kwds (#23917)
Diffstat (limited to 'Lib/enum.py')
-rw-r--r--Lib/enum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index 0070ebe..36a9a40 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -178,7 +178,7 @@ class EnumMeta(type):
Metaclass for Enum
"""
@classmethod
- def __prepare__(metacls, cls, bases):
+ def __prepare__(metacls, cls, bases, **kwds):
# check that previous enum members do not exist
metacls._check_for_existing_members(cls, bases)
# create the namespace dict