]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (...
authorsobolevn <mail@sobolevn.me>
Mon, 2 Sep 2024 06:58:38 +0000 (09:58 +0300)
committerGitHub <noreply@github.com>
Mon, 2 Sep 2024 06:58:38 +0000 (09:58 +0300)
Doc/library/dataclasses.rst

index 324403f87b9f916454d2eb5031ac8bf4885d66c7..cfca11afbd2e41cf4a07685a28273804889f30a2 100644 (file)
@@ -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