summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-10-31 17:29:15 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-10-31 17:29:15 (GMT)
commitc62162d5fdae577fd4b6706afaefd68551040df2 (patch)
tree1292e6c3a4c2579ec3895d85d05061d4aef615bf /Doc/library/inspect.rst
parent0e5eba25c76aa7936102975a8bfbd42f70a3b9e3 (diff)
downloadcpython-c62162d5fdae577fd4b6706afaefd68551040df2.zip
cpython-c62162d5fdae577fd4b6706afaefd68551040df2.tar.gz
cpython-c62162d5fdae577fd4b6706afaefd68551040df2.tar.bz2
docs/inspect: Document __annotations__
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 26a2913..23e559c 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -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 |
+-----------+-----------------+---------------------------+