Bug report
I made a typo that made it into the final code:
|
if getattr(cls, '__dictrefoffset__', -1) != 0: |
|
slots.append('__dict__') |
It should had been __dictoffset__ not __dictrefoffset__.
Fixing plan:
- Add tests for C types with
__dictoffset__, so it won't happen again :)
- Fix the typo
Linked PRs
Bug report
I made a typo that made it into the final code:
cpython/Lib/dataclasses.py
Lines 1211 to 1212 in 00ffdf2
It should had been
__dictoffset__not__dictrefoffset__.Fixing plan:
__dictoffset__, so it won't happen again :)Linked PRs
_get_slotsindataclasses.py#123941_get_slotsindataclasses.py(GH-123941) #123991_get_slotsindataclasses.py(GH-123941) #123992