-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Currying support for generic attrs classes #1100
Labels
bug
Something isn't working
Comments
Thanks! The same would be needed for our |
Not exactly sure what you mean, but as far as I understood it, the problem is that by default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
I tried out returns, because I was looking for typesafe curry implementation, but I hit a problem with my Generic / Protocol implementing attrs classes.
What's wrong
How is that should be
The above code should simply print
Pair(_a=2, _b=1)
This seems to be due to python-attrs/attrs#374
A fix I hacked together could be something like this.
If you are interested in support this admittedly special use case, I could submit a PR.
System information
python
version: 3.7returns
version: 0.17.0mypy
version: 0.910The text was updated successfully, but these errors were encountered: