Skip to content

Commit 3ce56c2

Browse files
sobolevnmiss-islington
authored andcommitted
pythongh-123570: Add link to weakref.ref from weakref_slot docs in dataclasses (pythonGH-123571)
(cherry picked from commit c3ed775) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent b8ef767 commit 3ce56c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/dataclasses.rst

Lines changed: 2 additions & 1 deletion
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)