-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Literal[True, False] false positives within tuples #11701
Labels
Comments
tushar-deepsource
pushed a commit
to DeepSourceCorp/mypy
that referenced
this issue
Jan 20, 2022
…ython#11709) In some places in our code bool was compared with `Union[Literal[True], Literal[False]]`. It was later compared with each union item. And bool is not subtype of `Literal[True]` and `Literal[False]`. Closes python#11701 Refs python#11705
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code generates unexpected errors:
The issue was introduced in #10389.
Marking as high priority since this is a regression.
cc @ethan-leba
The text was updated successfully, but these errors were encountered: