Closed as not planned
Description
In the statement below, based on past statements, neiter first_enum
is None
, nor __new__
could reallistically be Enum.__new__
.
Lines 1045 to 1046 in 6abd048
first_enum
is not None
because this has been made sure in _get_mixins_
:Lines 950 to 951 in 6abd048
Also
__new__
couldn't be Enum.__new__
because the earlier statements do not allow this. The only exception is in this unrealistic scenario:
class AnEnum(Enum):
__new__ = Enum.__new__
Is this has been the reason that this term is added to the if
statement?
By the way in Python3.8 this two expressions don't exist:
Lines 618 to 619 in 3205d1f
Metadata
Metadata
Assignees
Labels
No labels