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
This code (missing return type in Callable) crashes mypy with an uncaught IndexError:
Callable
IndexError
from typing import Callable def g(f: Callable[[int]]) -> None: pass
It should just report an error.
The text was updated successfully, but these errors were encountered:
Yes, it definitely should not crash. Thanks for the bug report!
Sorry, something went wrong.
FWIW bare Callable it should probably be equivalent to Callable[..., Any]. See python/typing#133
Callable[..., Any]
This no longer crashes.
No branches or pull requests
This code (missing return type in
Callable
) crashes mypy with an uncaughtIndexError
:It should just report an error.
The text was updated successfully, but these errors were encountered: