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

a joining of two types becomes object not a union #11440

Closed
KotlinIsland opened this issue Nov 3, 2021 · 1 comment
Closed

a joining of two types becomes object not a union #11440

KotlinIsland opened this issue Nov 3, 2021 · 1 comment
Labels
bug mypy got something wrong topic-join-v-union Using join vs. using unions

Comments

@KotlinIsland
Copy link
Contributor

for it in 1, "1":
    reveal_type(it)  # object

I would expect int | str

@hauntsaninja
Copy link
Collaborator

The specific example here is fixed by #17408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong topic-join-v-union Using join vs. using unions
Projects
None yet
Development

No branches or pull requests

3 participants