-
-
Notifications
You must be signed in to change notification settings - Fork 365
-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
attr.ib(order) function key #624
Comments
Is the request here that if you have: import attr
import natsort
_natsort_key = natsort.natsort_keygen()
@attrs(cmp=True)
class Ham:
name = attr.ib(order=_natsort_key)
id = attr.ib() then the generated comparison functions should treat that attribute as if |
This seems potentially related to #435 |
I agree that this seems like something that could be handled as part of #435. I'm working on it now, and I'll check if the proposed solution can accommodate this use case in a natural/intuitive way. |
I believe this is fixed by #787. Please scream/re-open if not! |
eg:
The text was updated successfully, but these errors were encountered: