We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
apply
curry
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
It is happenening with the lastest version and 0.14 as well:
0.14
Failing code:
from returns.io import IO from returns.curry import curry @curry def fails(a1: int, a2: str, a3: str) -> str: return str(a1) + a2 + a3 def works(arg: int) -> str: ... reveal_type(IO(1).apply(IO(works))) reveal_type(IO(1).apply(IO(fails)))
Output:
» mypy ex.py ex.py:20: note: Revealed type is 'returns.io.IO[builtins.str*]' ex.py:21: note: Revealed type is 'returns.io.IO[Overload(def (a2: builtins.str, a3: builtins.str) -> builtins.str, def (a2: builtins.str) -> def (a3: builtins.str) -> builtins.str)]' ex.py:21: error: Argument 1 to "IO" has incompatible type overloaded function; expected overloaded function
The text was updated successfully, but these errors were encountered:
flow
is_subtype
Duplicate of #462
Sorry, something went wrong.
No branches or pull requests
It is happenening with the lastest version and
0.14
as well:Failing code:
Output:
The text was updated successfully, but these errors were encountered: