summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2022-05-10 02:40:42 (GMT)
committerGitHub <noreply@github.com>2022-05-10 02:40:42 (GMT)
commit5be069568ddbce1d50f785426e6b6c2b82957f70 (patch)
tree50842f0d9213d2db476b999f632cdc4ea8229b80 /Lib/enum.py
parentdcdf250d2de1428f7d8b4e9ecf51d2fd8200e21a (diff)
downloadcpython-5be069568ddbce1d50f785426e6b6c2b82957f70.zip
cpython-5be069568ddbce1d50f785426e6b6c2b82957f70.tar.gz
cpython-5be069568ddbce1d50f785426e6b6c2b82957f70.tar.bz2
[Enum] Remove redundant check for existing members. (GH-92590)
Diffstat (limited to 'Lib/enum.py')
-rw-r--r--Lib/enum.py3
1 files changed, 0 insertions, 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]