Skip to content

Commit

Permalink
pythongh-123570: Add link to weakref.ref from weakref_slot docs i…
Browse files Browse the repository at this point in the history
…n `dataclasses`
  • Loading branch information
sobolevn committed Sep 1, 2024
1 parent 75e7282 commit 07ff137
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/dataclasses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07ff137

Please sign in to comment.