gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (#123571)

This commit is contained in:
sobolevn 2024-09-02 09:58:38 +03:00 committed by GitHub
parent 88210c295d
commit c3ed775899
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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