mirror of https://github.com/python/cpython
[Enum] Remove redundant check for existing members. (GH-92590)
This commit is contained in:
parent
dcdf250d2d
commit
5be069568d
|
@ -1024,9 +1024,6 @@ class EnumType(type):
|
|||
"""
|
||||
if not bases:
|
||||
return object, Enum
|
||||
|
||||
mcls._check_for_existing_members_(class_name, bases)
|
||||
|
||||
# ensure final parent class is an Enum derivative, find any concrete
|
||||
# data type, and check that Enum has no members
|
||||
first_enum = bases[-1]
|
||||
|
|
Loading…
Reference in New Issue