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
Consider this code:
from typing import typevar, List T = typevar('T') def f(x: List[T]) -> T: return x[0] def g(y: object) -> None: pass a = [1] g(f(a)) # Argument 1 to "f" has incompatible type List[int]; expected List[object]
The code should not be rejected. We should not infer T from the context of the f invocation.
T
f
This is a generalization of #360.
The text was updated successfully, but these errors were encountered:
Work in progress for fixing #462
140e949
75d2e01
No branches or pull requests
Consider this code:
The code should not be rejected. We should not infer
T
from the context of thef
invocation.This is a generalization of #360.
The text was updated successfully, but these errors were encountered: