hwtypes
hwtypes copied to clipboard
Allow subclassing of enums to create extensions
In defining instruction sets and extension it would be convenient if the following worked:
class Base(Enum):
a = 0
b = 1
class Extension(Base):
c = 2
class Other(Enum):
e = 3
f = 4
class BigExtension(Extension, Other): pass