diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2020-12-24 10:05:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 10:05:17 -0800 |
commit | 630d2e14c5e232f5c86fc1b8a7d61b6df081a352 (patch) | |
tree | b499f0504f79e1a218229e93ca1847fb61d80831 /Lib/enum.py | |
parent | 6ec0adefad60ec7cdec61c44baecf1dccc1461ab (diff) | |
download | cpython-git-revert-23917-enum-prepare_kwds.tar.gz |
Revert "[Enum] EnumMeta.__prepare__ now accepts **kwds (#23917)"revert-23917-enum-prepare_kwds
This reverts commit 6ec0adefad60ec7cdec61c44baecf1dccc1461ab.
Diffstat (limited to 'Lib/enum.py')
-rw-r--r-- | Lib/enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index 36a9a400a1..0070ebe136 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, **kwds): + def __prepare__(metacls, cls, bases): # check that previous enum members do not exist metacls._check_for_existing_members(cls, bases) # create the namespace dict |