You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
System information
python version: 3.9.7
returns version: 0.16.0
mypy version: 0.910
hypothesis version (if any):
pytest version (if any):
The text was updated successfully, but these errors were encountered:
fadedDexofan
changed the title
Plugin generates incompatible type overloads for @curry decorated functions with TypeVar
Mypy plugin generates incompatible type overloads for @curry decorated functions with TypeVar
Sep 16, 2021
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):The text was updated successfully, but these errors were encountered: