diff options
author | Sadra Barikbin <sadraqazvin1@yahoo.com> | 2023-04-03 21:51:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 21:51:43 (GMT) |
commit | d3a7732dd54c27ae523bef73efbb0c580ce2fbc0 (patch) | |
tree | 5b71a489677fe9d8130f2fb52976661f61991db0 /Lib/enum.py | |
parent | 24facd60f6e5458cc783e429fe63d6a80d476f84 (diff) | |
download | cpython-d3a7732dd54c27ae523bef73efbb0c580ce2fbc0.zip cpython-d3a7732dd54c27ae523bef73efbb0c580ce2fbc0.tar.gz cpython-d3a7732dd54c27ae523bef73efbb0c580ce2fbc0.tar.bz2 |
gh-103215: Remove redundant if stmt from `enum.EnumType._find_data_type_` (GH-103222)
Diffstat (limited to 'Lib/enum.py')
-rw-r--r-- | Lib/enum.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index 4e231e7..b8ea7af 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -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: |