summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobolevn <mail@sobolevn.me>2024-09-02 06:58:38 (GMT)
committerGitHub <noreply@github.com>2024-09-02 06:58:38 (GMT)
commitc3ed775899eedd47d37f8f1840345b108920e400 (patch)
tree206fa9f3508f552bcad4490cccf2dc21cd314731
parent88210c295d51364c9f779989bc528084b8fe8765 (diff)
downloadcpython-c3ed775899eedd47d37f8f1840345b108920e400.zip
cpython-c3ed775899eedd47d37f8f1840345b108920e400.tar.gz
cpython-c3ed775899eedd47d37f8f1840345b108920e400.tar.bz2
gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (#123571)
-rw-r--r--Doc/library/dataclasses.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 324403f..cfca11a 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -215,7 +215,8 @@ Module contents
- *weakref_slot*: If true (the default is ``False``), add a slot
named "__weakref__", which is required to make an instance
- weakref-able. It is an error to specify ``weakref_slot=True``
+ :func:`weakref-able <weakref.ref>`.
+ It is an error to specify ``weakref_slot=True``
without also specifying ``slots=True``.
.. versionadded:: 3.11