summaryrefslogtreecommitdiffstats
path: root/Doc/reference/compound_stmts.rst
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2018-12-24 05:09:09 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2018-12-24 05:09:09 (GMT)
commitb7105c9c9663637e4500bfcac75c911e78d9a1c0 (patch)
tree05bafc47ad9fd747c9ca73a762225b7788e641d8 /Doc/reference/compound_stmts.rst
parentd378b1f8ed7919f65a89f026bc899204be3773d4 (diff)
downloadcpython-b7105c9c9663637e4500bfcac75c911e78d9a1c0.zip
cpython-b7105c9c9663637e4500bfcac75c911e78d9a1c0.tar.gz
cpython-b7105c9c9663637e4500bfcac75c911e78d9a1c0.tar.bz2
bpo-35566: Add links to annotation glossary term (GH-11291)
Diffstat (limited to 'Doc/reference/compound_stmts.rst')
-rw-r--r--Doc/reference/compound_stmts.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index a83b561..42fa864 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -571,8 +571,8 @@ used keyword arguments.
single: ->; function annotations
single: : (colon); function annotations
-Parameters may have annotations of the form "``: expression``" following the
-parameter name. Any parameter may have an annotation even those of the form
+Parameters may have an :term:`annotation <function annotation>` of the form "``: expression``"
+following the parameter name. Any parameter may have an annotation, even those of the form
``*identifier`` or ``**identifier``. Functions may have "return" annotation of
the form "``-> expression``" after the parameter list. These annotations can be
any valid Python expression. The presence of annotations does not change the