[3.13] gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (GH-123571) (#123594)
gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (GH-123571)
(cherry picked from commit c3ed775899eedd47d37f8f1840345b108920e400)
Co-authored-by: sobolevn <mail@sobolevn.me>
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index db1e6af..2b94319 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -215,7 +215,8 @@
- *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