Mypy gives incompatible type overloaded function error for both curried functions:
error: Argument 1 to "IO" has incompatible type overloaded function; expected "Callable[[Set[int]], Callable[..., Set[_T]]]" [arg-type]
error: Argument 1 to "IO" has incompatible type overloaded function; expected "Callable[[Set[int]], Callable[[Set[int]], Set[_T]]]" [arg-type]
error: Argument 1 to "IO" has incompatible type overloaded function; expected "Callable[[str], Callable[..., _T]]" [arg-type]
error: Argument 1 to "IO" has incompatible type overloaded function; expected "Callable[[str], Callable[[str], _T]]" [arg-type]
How is that should be
Type overloads for functions with TypeVar's should be generated correctly
Bug report
What's wrong
returns mypy plugin generate incorrect type overloads for curry decorated function with TypeVar arguments
Code to reproduce issue:
Mypy gives incompatible type overloaded function error for both curried functions:
How is that should be
Type overloads for functions with TypeVar's should be generated correctly
System information
python
version: 3.9.7returns
version: 0.16.0mypy
version: 0.910hypothesis
version (if any):pytest
version (if any):