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

Remove trasition fail when state is Enum #688

Open
hookokoko opened this issue Aug 28, 2024 · 0 comments
Open

Remove trasition fail when state is Enum #688

hookokoko opened this issue Aug 28, 2024 · 0 comments
Assignees
Labels

Comments

@hookokoko
Copy link

Thank you for taking the time to report a bug! Your support is essential for the maintenance of this project. Please fill out the following fields to ease bug hunting and resolving this issue as soon as possible:

Describe the bug
#162 In this issue, add a feature to remove transitions.

It will remove trasition fail when the source/target is of Enum type, because Enum('source') is not equal to 'source'. This could be confusing otherwise.

I think this situation also needs to be considered.

target_source = source.name if hasattr(source, 'name') else source if source != "*" else ""
target_dest = dest.name if hasattr(dest, 'name') else dest if dest != "*" else ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants