From c62162d5fdae577fd4b6706afaefd68551040df2 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Sat, 31 Oct 2015 13:29:15 -0400 Subject: docs/inspect: Document __annotations__ --- Doc/library/inspect.rst | 6 ++++++ 1 file changed, 6 insertions(+) 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 | +-----------+-----------------+---------------------------+ -- cgit v0.12