]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103215: Remove redundant if stmt from `enum.EnumType._find_data_type_` (GH-103222)
authorSadra Barikbin <sadraqazvin1@yahoo.com>
Mon, 3 Apr 2023 21:51:43 +0000 (01:21 +0330)
committerGitHub <noreply@github.com>
Mon, 3 Apr 2023 21:51:43 +0000 (14:51 -0700)
Lib/enum.py

index 4e231e7e8ea7794088deec92ef1edb5d926b94af..b8ea7af9e74775169b835d550cbfd23f137a4d1e 100644 (file)
@@ -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: