From: Ethan Furman Date: Tue, 10 May 2022 02:40:42 +0000 (-0700) Subject: [Enum] Remove redundant check for existing members. (GH-92590) X-Git-Tag: v3.12.0a1~1609 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5be069568ddbce1d50f785426e6b6c2b82957f70;p=thirdparty%2FPython%2Fcpython.git [Enum] Remove redundant check for existing members. (GH-92590) --- diff --git a/Lib/enum.py b/Lib/enum.py index b9811fe9e678..1df38a6f7e5f 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]