From: Sadra Barikbin Date: Mon, 3 Apr 2023 21:51:43 +0000 (+0330) Subject: gh-103215: Remove redundant if stmt from `enum.EnumType._find_data_type_` (GH-103222) X-Git-Tag: v3.12.0a7~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3a7732dd54c27ae523bef73efbb0c580ce2fbc0;p=thirdparty%2FPython%2Fcpython.git gh-103215: Remove redundant if stmt from `enum.EnumType._find_data_type_` (GH-103222) --- diff --git a/Lib/enum.py b/Lib/enum.py index 4e231e7e8ea7..b8ea7af9e747 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: