This seems straightforwardly incorrect to me:
class NoAttrsSlotsBase:
__slots__ = ['base']
class NoAttrsSlotsChild(NoAttrsSlotsBase):
__slots__ = ['child']
from attrs import define
@define()
class AttrsWithNoAttrsBase:
attrs_child: str = "default"
print(NoAttrsSlotsChild.base)
print(AttrsWithNoAttrsBase.base)
<member 'base' of 'NoAttrsSlotsBase' objects>
Traceback (most recent call last):
File "slots2.py", line 16, in <module>
print(AttrsWithNoAttrsBase.base)
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'AttrsWithNoAttrsBase' has no attribute 'base'
Should it be fixed?