mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-123935: Fix typo in _get_slots
in dataclasses.py
(#123941)
This commit is contained in:
parent
43303e362e
commit
ac918ccad7
3 changed files with 22 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue