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
Mypy complains about the following code even though it should be valid:
from typing import typevar, overload, Function T = typevar('T', values=(int, str)) def f(x: T) -> None: m(g, x) # Error: Argument 1 to "m" has incompatible type functionlike; expected Function[["str"] -> "int"] A = typevar('A') R = typevar('R') def m(f: Function[[A], R], it: A) -> None: pass @overload def g(x: int) -> int: return x @overload def g(x: str) -> str: return x
The text was updated successfully, but these errors were encountered:
16adf9f
No branches or pull requests
Mypy complains about the following code even though it should be valid:
The text was updated successfully, but these errors were encountered: