From d3a7732dd54c27ae523bef73efbb0c580ce2fbc0 Mon Sep 17 00:00:00 2001 From: Sadra Barikbin Date: Tue, 4 Apr 2023 01:21:43 +0330 Subject: [PATCH] gh-103215: Remove redundant if stmt from `enum.EnumType._find_data_type_` (GH-103222) --- Lib/enum.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/enum.py b/Lib/enum.py index 4e231e7e8ea..b8ea7af9e74 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: