From: Yury Selivanov Date: Sat, 31 Oct 2015 17:29:15 +0000 (-0400) Subject: docs/inspect: Document __annotations__ X-Git-Tag: v3.5.1rc1~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c62162d5fdae577fd4b6706afaefd68551040df2;p=thirdparty%2FPython%2Fcpython.git docs/inspect: Document __annotations__ --- diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 26a2913d797a..23e559cabc2d 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 | +-----------+-----------------+---------------------------+