[Python-checkins] cpython (3.5): docs/inspect: Document __annotations__

yury.selivanov python-checkins at python.org
Sat Oct 31 13:29:40 EDT 2015


https://hg.python.org/cpython/rev/d8256ba0914b
changeset: 98913:d8256ba0914b
branch: 3.5
parent: 98911:669fb11a4b5e
user: Yury Selivanov <yselivanov at sprymix.com>
date: Sat Oct 31 13:29:15 2015 -0400
summary:
 docs/inspect: Document __annotations__
files:
 Doc/library/inspect.rst | 6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -88,6 +88,12 @@
 | | __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 |
 +-----------+-----------------+---------------------------+
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /