mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-103215: Remove redundant if stmt from enum.EnumType._find_data_type_
(GH-103222)
This commit is contained in:
parent
24facd60f6
commit
d3a7732dd5
1 changed files with 0 additions and 2 deletions
|
@ -987,8 +987,6 @@ class EnumType(type):
|
|||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue