https://github.com/python/cpython/commit/c3ed775899eedd47d37f8f1840345b108920e400
commit: c3ed775899eedd47d37f8f1840345b108920e400
branch: main
author: sobolevn <[email protected]>
committer: sobolevn <[email protected]>
date: 2024-09-02T09:58:38+03:00
summary:
gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses`
(#123571)
files:
M Doc/library/dataclasses.rst
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 324403f87b9f91..cfca11afbd2e41 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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]