[go: up one dir, main page]

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

(🐞) redundant union entries show in error messages #15972

Closed
KotlinIsland opened this issue Aug 27, 2023 · 1 comment
Closed

(🐞) redundant union entries show in error messages #15972

KotlinIsland opened this issue Aug 27, 2023 · 1 comment
Labels
bug mypy got something wrong topic-error-reporting How we report errors topic-union-types

Comments

@KotlinIsland
Copy link
Contributor
a: int = "a" or "b"  # error: Incompatible types in assignment (expression has type "str | str", variable has type "int")  [assignment]

str | str

@KotlinIsland KotlinIsland added the bug mypy got something wrong label Aug 27, 2023
@brianschubert
Copy link
Contributor

This was fixed in abdaf6a (#17408), which was released with v1.11.0 🎉

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-error-reporting How we report errors topic-union-types
Projects
None yet
Development

No branches or pull requests

4 participants