hwtypes icon indicating copy to clipboard operation
hwtypes copied to clipboard

Allow subclassing of enums to create extensions

Open cdonovick opened this issue 4 years ago • 0 comments

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

cdonovick avatar Aug 13 '20 19:08 cdonovick