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

Support .value inference for Union of enums #15939

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

sobolevn
Copy link
Member

Closes #15938

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@A5rocks
Copy link
Contributor

A5rocks commented Aug 24, 2023

I remember making a similar PR over at #15636 but I can't tell if this is the same or not (... judging by the TODO I left, these are not the same)

@sobolevn
Copy link
Member Author

@A5rocks No, it is similar but different :)

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.

(🐞) Heterogeneous Enum's .value is Any & Union of homogeneous Enums .value is Any
2 participants