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
https://mypy-play.net/?mypy=latest&python=3.9&gist=6770a34c37170183d0fefe8b1444aa27
from typing import Dict, Union def fun() -> Union[Dict[str, int], Dict[int, float]]: return {}
error: Incompatible return value type (got "Dict[<nothing>, <nothing>]", expected "Union[Dict[str, int], Dict[int, float]]")
The text was updated successfully, but these errors were encountered:
I guess, {} should be Dict[Any, Any] and not Dict[<nothing>, <nothing>]
{}
Dict[Any, Any]
Dict[<nothing>, <nothing>]
Sorry, something went wrong.
There is prior discussion in python/typeshed#4846 and a PR in python/typeshed#4987.
Not reproduced anymore, so closing.
No branches or pull requests
https://mypy-play.net/?mypy=latest&python=3.9&gist=6770a34c37170183d0fefe8b1444aa27
The text was updated successfully, but these errors were encountered: