From 5be069568ddbce1d50f785426e6b6c2b82957f70 Mon Sep 17 00:00:00 2001 From: Ethan Furman Date: Mon, 9 May 2022 19:40:42 -0700 Subject: [Enum] Remove redundant check for existing members. (GH-92590) --- Lib/enum.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Lib/enum.py b/Lib/enum.py index b9811fe..1df38a6 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -1024,9 +1024,6 @@ class EnumType(type): """ if not bases: return object, Enum - - mcls._check_for_existing_members_(class_name, bases) - # ensure final parent class is an Enum derivative, find any concrete # data type, and check that Enum has no members first_enum = bases[-1] -- cgit v0.12