[issue33219] x in IntFlag should test raise TypeError if x is not an IntFlag

2018-04-12 Thread Ethan Furman
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

[issue33219] x in IntFlag should test raise TypeError if x is not an IntFlag

2018-04-05 Thread Ethan Furman
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