Error to infer types from a curried function with more than two args #8978
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-overloads
topic-type-variables
This is possibly a BUG
I'm using returns lib that provide fully typed functions, it has a curry decorator. I'm trying to use it, but
mypy
has got an error when we have a curried function with more than two args and try to create a Result container with the function.Result.from_value(...) source code
@curry source code
Working example:
Nonworking example:
mypy output:
Versions
My config file:
Refs: dry-python/returns#410
The text was updated successfully, but these errors were encountered: