enum-flags

Python mypy warning of incompatible type when using Enum Flag

Python mypy warning of incompatible type when using Enum Flag Question: I am trying to make a variable that can be from a set of enum values, and then select a specific one when using it elsewhere. from enum import Flag, auto class MyEnum(Flag): FOO: int = auto() BAR: int = auto() MOO: int = …

Total answers: 1