docs/inspect: Document __annotations__
authorYury Selivanov <yselivanov@sprymix.com>
Sat, 31 Oct 2015 17:29:15 +0000 (13:29 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Sat, 31 Oct 2015 17:29:15 +0000 (13:29 -0400)
Doc/library/inspect.rst

index 26a2913d797ac19167af9cea51ef338337ffc6b7..23e559cabc2d105fec2513e2d39f07ca33613e94 100644 (file)
@@ -88,6 +88,12 @@ attributes:
 |           | __globals__     | global namespace in which |
 |           |                 | this function was defined |
 +-----------+-----------------+---------------------------+
+|           | __annotations__ | mapping of parameters     |
+|           |                 | names to annotations;     |
+|           |                 | ``"return"`` key is       |
+|           |                 | reserved for return       |
+|           |                 | annotations.              |
++-----------+-----------------+---------------------------+
 | traceback | tb_frame        | frame object at this      |
 |           |                 | level                     |
 +-----------+-----------------+---------------------------+