Skip to content

Commit 94734b1

Browse files
committed
chore: move annotate version note
1 parent 97dfcd7 commit 94734b1

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

Doc/library/inspect.rst

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
105105
| | | reserved for return |
106106
| | | annotations. |
107107
+-----------------+-------------------+---------------------------+
108+
| | __annotate__ | The annotate function for |
109+
| | | lazy evaluation of |
110+
| | | :ref:`annotations |
111+
| | | <annotations-howto>`, or |
112+
| | | None if the function has |
113+
| | | no annotations. |
114+
+-----------------+-------------------+---------------------------+
108115
| | __type_params__ | A tuple containing the |
109116
| | | :ref:`type parameters |
110117
| | | <type-params>` of |
@@ -116,18 +123,6 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
116123
| | | outer scopes) used in |
117124
| | | nested functions. |
118125
+-----------------+-------------------+---------------------------+
119-
| | __dict__ | The namespace dictionary |
120-
| | | that stores arbitrary |
121-
| | | function attributes |
122-
| | | and metadata. |
123-
+-----------------+-------------------+---------------------------+
124-
| | __annotate__ | The annotate function for |
125-
| | | lazy evaluation of |
126-
| | | annotations (PEP649), or |
127-
| | | None if the function has |
128-
| | | no annotations. New in |
129-
| | | Python 3.14. |
130-
+-----------------+-------------------+---------------------------+
131126
| | __module__ | name of module in which |
132127
| | | this function was defined |
133128
+-----------------+-------------------+---------------------------+
@@ -369,7 +364,8 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
369364

370365
.. versionchanged:: 3.14
371366

372-
Add ``f_generator`` attribute to frames.
367+
Add ``__annotate__`` attribute to functions and ``f_generator`` attribute
368+
to frames.
373369

374370
.. versionchanged:: 3.15
375371

0 commit comments

Comments
 (0)