curry plugin fails with generic function argument
suned opened this issue · comments
Sune Debel commented
from typing import Callable, TypeVar, Union
from pfun import curry
A = TypeVar('A')
B = TypeVar('B')
@curry
def f(v: B, g: Callable[[], A]) -> Union[B, A]:
pass
f(1)(lambda: '') # Argument 1 has incompatible type "Callable[[], str]"