-
-
Notifications
You must be signed in to change notification settings - Fork 385
Subclassed decorator methods not working #753
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
This throws an error like:
|
I don't understand why this wouldn't work, but it seems attrs is heavily reworking the new / init system so its easy for something like this to go over my head. Shouldn't TestClass inherit value from BaseClass? Is there a work around? |
seems like this is more of a python issue https://stackoverflow.com/questions/3782040/python-decorators-that-are-part-of-a-base-class-cannot-be-used-to-decorate-membe |
Yeah… this isn't |
@wsanchez i understand closing this as it isn't something python directly supports, however it seems to be a strongly suggested method from the attrs docs which doesn't work in the case of subclasses. In reviewing other issues before I posted this one, I found a solution that could potentially alleviate this by relying on the
|
Ah, let's re-open for consideration in the docs. |
My framework relies on (smart) subclassing, but I've also got it to work with attrs mostly. Running into a problem like the following.
The text was updated successfully, but these errors were encountered: