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

Actually exclude "__order__" attribute from Enum Union expansion #8160

Merged
merged 1 commit into from
Dec 17, 2019
Merged

Actually exclude "__order__" attribute from Enum Union expansion #8160

merged 1 commit into from
Dec 17, 2019

Conversation

lazytype
Copy link
Contributor

My previous attempt didn't actually work as advertised as it was lacking complete test coverage. It merely handled the case
Bar.__order__ # E: "Type[Bar]" has no attribute "__order__"

This PR adds more tests and implements the desired behavior this time.

@ilevkivskyi ilevkivskyi merged commit 5fd431f into python:master Dec 17, 2019
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

Successfully merging this pull request may close these issues.

2 participants