Skip to content

Commit

Permalink
pythongh-123935: Fix typo in _get_slots in dataclasses.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Sep 11, 2024
1 parent 00ffdf2 commit d085d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d085d00

Please sign in to comment.