mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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_)
|
data_types.add(base._member_type_)
|
||||||
break
|
break
|
||||||
elif '__new__' in base.__dict__ or '__init__' in base.__dict__:
|
elif '__new__' in base.__dict__ or '__init__' in base.__dict__:
|
||||||
if isinstance(base, EnumType):
|
|
||||||
continue
|
|
||||||
data_types.add(candidate or base)
|
data_types.add(candidate or base)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue