From 8b15c957c87c2cee0af254effd77a8c327a5be14 Mon Sep 17 00:00:00 2001 From: Ethan Furman Date: Mon, 9 May 2022 18:00:00 -0700 Subject: [PATCH] remove redundant check for existing members --- Lib/enum.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Lib/enum.py b/Lib/enum.py index b9811fe9e6787c..1df38a6f7e5f50 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -1024,9 +1024,6 @@ def _get_mixins_(mcls, class_name, bases): """ 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]