diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py index 141aa41c74d7ed1..ac7d40cf2cac2ed 100644 --- a/Lib/dataclasses.py +++ b/Lib/dataclasses.py @@ -1208,7 +1208,7 @@ def _get_slots(cls): slots = [] if getattr(cls, '__weakrefoffset__', -1) != 0: slots.append('__weakref__') - if getattr(cls, '__dictrefoffset__', -1) != 0: + if getattr(cls, '__dictoffset__', -1) != 0: slots.append('__dict__') yield from slots case str(slot):