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` (python#123571)
  • Loading branch information
sobolevn authored Sep 2, 2024
1 parent 88210c2 commit c3ed775
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 c3ed775

Please sign in to comment.