Skip to content

Commit 5be0695

Browse files
authored
[Enum] Remove redundant check for existing members. (GH-92590)
1 parent dcdf250 commit 5be0695

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/enum.py

-3
Original file line numberDiff line numberDiff line change
@@ -1024,9 +1024,6 @@ def _get_mixins_(mcls, class_name, bases):
10241024
"""
10251025
if not bases:
10261026
return object, Enum
1027-
1028-
mcls._check_for_existing_members_(class_name, bases)
1029-
10301027
# ensure final parent class is an Enum derivative, find any concrete
10311028
# data type, and check that Enum has no members
10321029
first_enum = bases[-1]

0 commit comments

Comments
 (0)