We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Python 3.8 Mypy: 7.6.0 issue type: bug
ffrom functools import singledispatch @singledispatch def f(arg) -> str: pass @f.register def _1(arg: int) -> int: return arg @f.register def _2(arg: list) -> list: return list(map(f, arg)) reveal_type(f(1))
Here's the code in the mypy playground
What is the actual behavior/output?
main.py:15: note: Revealed type is 'builtins.str*'
What is the behavior/output you expect?
main.py:15: note: Revealed type is 'builtins.int*'
The text was updated successfully, but these errors were encountered:
Duplicate of #2904
Sorry, something went wrong.
Note: this is now tracked in #11727.
No branches or pull requests
Python 3.8
Mypy: 7.6.0
issue type: bug
Here's the code in the mypy playground
What is the actual behavior/output?
What is the behavior/output you expect?
The text was updated successfully, but these errors were encountered: