From: sobolevn Date: Mon, 2 Sep 2024 06:58:38 +0000 (+0300) Subject: gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (... X-Git-Tag: v3.14.0a1~618 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3ed775899eedd47d37f8f1840345b108920e400;p=thirdparty%2FPython%2Fcpython.git gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (#123571) --- diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index 324403f87b9f..cfca11afbd2e 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 `. + It is an error to specify ``weakref_slot=True`` without also specifying ``slots=True``. .. versionadded:: 3.11