-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Multiple inheritance error when using slots #667
Comments
To be clear: #635 has nothing to do with this problem and the problem exists in 19.3 too. I suspect it's related to the way we create slotted classes in Line 711 in b02335f
Since slots become True by default in NG, we should have a look if we can fix this. |
An even smaller test case:
|
Actually, C doesn't even have to be an attrs class:
In fact, browsing the Python docs (https://docs.python.org/3/reference/datamodel.html#notes-on-using-slots):
So this is a Python limitation. |
Thank you for the research Tin! I will add an entry to the glossary. |
The following classes definitions causes an error:
Note that this error occurs on master with a commit that seems to purport to fix this problem:
#635
Removing the
slots
decorator kwargs resolves the error.Is there a workaround that supports slots?
The text was updated successfully, but these errors were encountered: