Skip to content

Commit c3ed775

Browse files
authored
gh-123570: Add link to weakref.ref from weakref_slot docs in dataclasses (#123571)
1 parent 88210c2 commit c3ed775

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/dataclasses.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ Module contents
215215

216216
- *weakref_slot*: If true (the default is ``False``), add a slot
217217
named "__weakref__", which is required to make an instance
218-
weakref-able. It is an error to specify ``weakref_slot=True``
218+
:func:`weakref-able <weakref.ref>`.
219+
It is an error to specify ``weakref_slot=True``
219220
without also specifying ``slots=True``.
220221

221222
.. versionadded:: 3.11

0 commit comments

Comments
 (0)