Skip to content

Commit

Permalink
pythongh-103215: Remove redundant if stmt from `enum.EnumType._find_d…
Browse files Browse the repository at this point in the history
…ata_type_` (pythonGH-103222)
  • Loading branch information
sadra-barikbin authored and gaogaotiantian committed Apr 8, 2023
1 parent 86a7818 commit 777038e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Lib/enum.py
Expand Up @@ -987,8 +987,6 @@ def _find_data_type_(mcls, class_name, bases):
data_types.add(base._member_type_)
break
elif '__new__' in base.__dict__ or '__init__' in base.__dict__:
if isinstance(base, EnumType):
continue
data_types.add(candidate or base)
break
else:
Expand Down

0 comments on commit 777038e

Please sign in to comment.