Skip to content

Commit ae17f9b

Browse files
[3.12] pythongh-123570: Add link to weakref.ref from weakref_slot docs in dataclasses (pythonGH-123571) (python#123595)
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 12db938 commit ae17f9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)