[Enum] Remove redundant check for existing members. (GH-92590)

This commit is contained in:
Ethan Furman 2022-05-09 19:40:42 -07:00 committed by GitHub
parent dcdf250d2d
commit 5be069568d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -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]