Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow subclassing of enums to create extensions #138

Open
cdonovick opened this issue Aug 13, 2020 · 0 comments
Open

Allow subclassing of enums to create extensions #138

cdonovick opened this issue Aug 13, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cdonovick
Copy link
Collaborator

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 cdonovick added the enhancement New feature or request label Aug 13, 2020
@cdonovick cdonovick self-assigned this Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant