Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
more
  • Loading branch information
AlexWaygood committed Sep 25, 2024
commit 46c381c6b99ac5e74359c02cea20a517376e8598
1 change: 1 addition & 0 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,7 @@ are always available. They are listed here in alphabetical order.
>>> X = type('X', (), dict(a=1))

See also:

* :ref:`Documentation on attributes and methods on classes <class-attrs-and-methods>`.
* :ref:`bltin-type-objects`

Expand Down
4 changes: 2 additions & 2 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ Special attributes
For best practices on working with :attr:`~object.__annotations__`,
please see :mod:`annotationlib`.

.. warning::
.. caution::

Accessing the :attr:`!__annotations__` attribute of a class
object directly may yield incorrect results in the presence of
Expand All @@ -1056,7 +1056,7 @@ Special attributes
if the class has no annotations.
See also: :attr:`__annotate__ attributes <object.__annotate__>`.

.. warning::
.. caution::

Accessing the :attr:`!__annotate__` attribute of a class
object directly may yield incorrect results in the presence of
Expand Down