Relative Content

Tag Archive for pythonenumspython-dataclasses

Dataclass Enum init item from another item

I’m trying to make an Enum the values of which are of a type which is a dataclass. As per the official Python Enum HOWTO, this can be achieved by inheriting from both Enum and the base dataclass.