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

Consider using enums #8

Open
davidkpiano opened this issue Jul 24, 2020 · 2 comments
Open

Consider using enums #8

davidkpiano opened this issue Jul 24, 2020 · 2 comments

Comments

@davidkpiano
Copy link
Member

https://docs.python.org/3/library/enum.html

@NixBiks
Copy link
Collaborator

NixBiks commented May 31, 2021

For the state and transition types?

import enum


class StateType(enum.Enum):
    compound = "compound"
    history = "history"
    atomic = "atomic"
    final = "final"


class TransitionType(enum.Enum):
    internal = 0
    external = 1

@davidkpiano
Copy link
Member Author

For the state and transition types?

Yes (sorry, should have been more clear!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants