-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
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
Mypy complains when currying a class #1476
Labels
bug
Something isn't working
Comments
This is a known issue. |
Thank you for this piece of information :) |
Try this:
|
mypy doesn't complain about that: from returns.curry import curry
class Test(object):
@curry
def __init__(self, arg: int, other: str) -> None:
...
Test(1) But does complain about that: Test(1)("")
In both cases, python doesn't seem to like the curry on
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Hi, I'm trying to curry a class constructor, but mypy complains
What's wrong
Here is my mypy.ini file:
How is that should be
mypy should not report any error
System information
python
version: 3.10.4returns
version: 0.19.0mypy
version: 0.971hypothesis
version (if any): not installedpytest
version (if any): not installedThe text was updated successfully, but these errors were encountered: