mirror of
https://github.com/python/cpython.git
synced 2025-10-07 23:51:16 +00:00
[Enum] Remove redundant check for existing members. (GH-92590)
This commit is contained in:
parent
dcdf250d2d
commit
5be069568d
1 changed files with 0 additions and 3 deletions
|
@ -1024,9 +1024,6 @@ class EnumType(type):
|
||||||
"""
|
"""
|
||||||
if not bases:
|
if not bases:
|
||||||
return object, Enum
|
return object, Enum
|
||||||
|
|
||||||
mcls._check_for_existing_members_(class_name, bases)
|
|
||||||
|
|
||||||
# ensure final parent class is an Enum derivative, find any concrete
|
# ensure final parent class is an Enum derivative, find any concrete
|
||||||
# data type, and check that Enum has no members
|
# data type, and check that Enum has no members
|
||||||
first_enum = bases[-1]
|
first_enum = bases[-1]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue