Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Sep 25, 2024
1 parent 51d1120 commit 7004384
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1006,18 +1006,19 @@ Special attributes
* - .. attribute:: type.__annotations__
- A dictionary containing
:term:`variable annotations <variable annotation>`
collected during class body execution. See also:
:attr:`__annotations__ attributes <object.__annotations__>`.

For best practices on working with :attr:`~object.__annotations__`,
please see :ref:`annotations-howto`.
collected during class body execution. For best practices on working
with :attr:`!__annotations__`, please see :ref:`annotations-howto`.

* - .. attribute:: type.__type_params__
- A :class:`tuple` containing the :ref:`type parameters <type-params>` of
a :ref:`generic class <generic-classes>`.

.. versionadded:: 3.12

* - .. attribute:: type.__mro__
- The :class:`tuple` of classes that are considered when looking for
base classes during method resolution.


Special methods
^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 7004384

Please sign in to comment.