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
E.g
from typing import TypeVar from pfun import compose A = TypeVar('A') def f(a: A) -> A: pass def g(a: int) -> str: pass compose(f, g) # error: Cannot infer argument 1 of compose
I think this is a current limitation of the mypy inference, since this also does not work:
R1 = TypeVar('R1') R2 = TypeVar('R2') R3 = TypeVar('R3') def compose(f: Callable[[R2], R1], g: Callable[[R3], R2]) -> Callable[[R3], R1]: pass A = TypeVar('A') def f(a: A) -> A: pass def g(a: int) -> str: pass compose(f, g) # error: Cannot infer type of argument 1 of compose
The text was updated successfully, but these errors were encountered:
No branches or pull requests
E.g
I think this is a current limitation of the mypy inference, since this also does not work:
The text was updated successfully, but these errors were encountered: