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
Are you reporting a bug, or opening a feature request?
Bug.
Please insert below the code you are checking with mypy,
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
Bug.
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
Reproduction link: https://github.com/sobolevn/mypy-bug-410
Here's what is going wrong. In
returns
we have a custommypy
plugin that createcurry
functions. It works like so:It works perfectly fine:
Ok, here's the next step. I try to pass both
first
andsecond
functions as values to be wrapped by some other type:And here's the problem,
first
works:While
second
does not:This part looks like an issue with
mypy
to me:Build output: https://github.com/sobolevn/mypy-bug-410/runs/783959567?check_suite_focus=true#step:5:12
Do you see the same issue after installing mypy from Git master?
[email protected]
, other version like0.770
are also affectedpython: 3.6, 3.7, 3.8
Full list is in the reproduction repo, here: https://github.com/sobolevn/mypy-bug-410/blob/master/setup.cfg#L2
Related:
@curry
source code: https://github.com/dry-python/returns/blob/master/returns/contrib/mypy/_features/curry.py@curry
tests: https://github.com/dry-python/returns/tree/master/typesafety/test_curry/test_curryThe text was updated successfully, but these errors were encountered: