Skip to content

Commit

Permalink
[Enum] Remove redundant check for existing members. (pythonGH-92590)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfurman committed May 10, 2022
1 parent dcdf250 commit 5be0695
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Lib/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,9 +1024,6 @@ def _get_mixins_(mcls, class_name, bases):
"""
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]
Expand Down

0 comments on commit 5be0695

Please sign in to comment.