File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,6 +252,16 @@ Glossary
252252 the execution of the body. See also :term: `parameter `, :term: `method `,
253253 and the :ref: `function ` section.
254254
255+ function annotation
256+ An arbitrary metadata value associated with a function parameter or return
257+ value. Its syntax is explained in section :ref: `function `. Annotations
258+ may be accessed via the :attr: `__annotations__ ` special attribute of a
259+ function object.
260+
261+ Python itself does not assign any particular meaning to function
262+ annotations. They are intended to be interpreted by third-party libraries
263+ or tools. See :pep: `3107 `, which describes some of their potential uses.
264+
255265 __future__
256266 A pseudo-module which programmers can use to enable new language features
257267 which are not compatible with the current interpreter.
You can’t perform that action at this time.
0 commit comments