mirror of
https://github.com/python/cpython.git
synced 2025-08-12 12:58:50 +00:00
[3.12] gh-123570: Add link to weakref.ref
from weakref_slot
docs in dataclasses
(GH-123571) (#123595)
gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (GH-123571)
(cherry picked from commit c3ed775899
)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
12db938d43
commit
ae17f9b0d0
1 changed files with 2 additions and 1 deletions
|
@ -215,7 +215,8 @@ Module contents
|
||||||
|
|
||||||
- *weakref_slot*: If true (the default is ``False``), add a slot
|
- *weakref_slot*: If true (the default is ``False``), add a slot
|
||||||
named "__weakref__", which is required to make an instance
|
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``.
|
without also specifying ``slots=True``.
|
||||||
|
|
||||||
.. versionadded:: 3.11
|
.. versionadded:: 3.11
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue