mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
[Enum] EnumMeta.__prepare__ now accepts **kwds (#23917)
This commit is contained in:
parent
7ec59d8861
commit
6ec0adefad
3 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue