Is it possible to pass kwargs to customised python enum
Is it possible to pass kwargs to customised python enum Question: You can customise an enum so the members have extra attributes. There are plenty of examples of that to be found. They all look something like this: class EnumWithAttrs(Enum): def __new__(cls, *args, **kwargs): value = len(cls.__members__) + 1 obj = object.__new__(cls) obj._value_ = value …