diff options
Diffstat (limited to 'Doc/library/dataclasses.rst')
-rw-r--r-- | Doc/library/dataclasses.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index 4364ac3..ab8df8b 100644 --- a/Doc/library/dataclasses.rst +++ b/Doc/library/dataclasses.rst @@ -191,7 +191,7 @@ Module contents .. versionchanged:: 3.11 If a field name is already included in the ``__slots__`` of a base class, it will not be included in the generated ``__slots__`` - to prevent `overriding them <https://docs.python.org/3/reference/datamodel.html#notes-on-using-slots>`_. + to prevent :ref:`overriding them <datamodel-note-slots>`. Therefore, do not use ``__slots__`` to retrieve the field names of a dataclass. Use :func:`fields` instead. To be able to determine inherited slots, |