We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When checking this code in mypy 0.670:
from typing import Union a: Union[tuple, int] = 3 b = (a,) if isinstance(a, int) else a reveal_type(b) # builtins.object
The inferred type of b is builtins.object. It should be some kind of tuple. I believe this example is minimal in that:
b
builtins.object
list
tuple
The text was updated successfully, but these errors were encountered:
Hi, this is a duplicate of #4975
Sorry, something went wrong.
No branches or pull requests
When checking this code in mypy 0.670:
The inferred type of
b
isbuiltins.object
. It should be some kind of tuple. I believe this example is minimal in that:list
instead oftuple
The text was updated successfully, but these errors were encountered: