Ethan Furman added the comment:
This and issue33217 are similar enough I'm going to track it in issue33217.
--
resolution: -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder: -> x in enum.Flag member is True when x is not a Flag
Ethan Furman added the comment:
issue33217 is tracking member-containment checks; modifying this one to track
class-containment checks.
Given
class Color(Enum):
RED = 1
class Fruit(Enum):
APPLE = 1
then
--> Fruit.APPLE in Color
False
--> Fruit.APPLE