]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Enum] Remove redundant check for existing members. (GH-92590)
authorEthan Furman <ethan@stoneleaf.us>
Tue, 10 May 2022 02:40:42 +0000 (19:40 -0700)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 02:40:42 +0000 (19:40 -0700)
Lib/enum.py

index b9811fe9e6787c383c00b991bfc95917fac011e6..1df38a6f7e5f50015a0d1ffbaa93aa6374e5c06e 100644 (file)
@@ -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]