8000 gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dat… · python/cpython@774fe78 · GitHub
[go: up one dir, main page]

Skip to content

Commit 774fe78

Browse files
sobolevnpull[bot]
authored andcommitted
gh-123570: Add link to weakref.ref from weakref_slot docs in dataclasses (#123571)
1 parent ce6a5be commit 774fe78

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)
0