Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Sep 25, 2024
1 parent d30c35d commit 46c381c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit 46c381c

Please sign in to comment.