Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Closed
Description
Bug report
Theweakref slot is redefined when inherited from a class which didn't specify slots at all (and thus has adict andweakref slots).
from dataclasses import dataclassclass A: pass@dataclass(slots=True, weakref_slot=True)class B(A): pass
gives the following error:
TypeError: __weakref__ slot disallowed: either we already got one, or __itemsize__ != 0