-
-
Notifications
You must be signed in to change notification settings - Fork 385
attributes based on properties #245
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
Comments
as far as i can tell this crippled example hides the real use-case please describe the real use-case, because this example is just horrifying |
also note that due to how python works, attrs doesnt see the counts "attribute", only the property is visible |
My use case is to have attributes (that get reflected in |
What is so horrifying about the example btw? (it is a trimmed down example after all) |
I know that the property overwrites the attribute, it is just meant to illustrate the use case. |
Sounds like #212 all over again? |
Yes, or at least it is related somewhat in the end after all. |
Currently this prints:
But I like for it to print:
I.e. it should use the property in the
__repr__
output.Is this possible already maybe?
The text was updated successfully, but these errors were encountered: