summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-04-25 18:02:07 (GMT)
committerGitHub <noreply@github.com>2018-04-25 18:02:07 (GMT)
commit0d19fa917c17150f02280b4583957510f06d7419 (patch)
tree5f41ac00179284352e8daa56b3e5ffc8301ec63c /Doc/tutorial
parent38e8936eed3d50b39629d4719fd836966c1517f2 (diff)
downloadcpython-0d19fa917c17150f02280b4583957510f06d7419.zip
cpython-0d19fa917c17150f02280b4583957510f06d7419.tar.gz
cpython-0d19fa917c17150f02280b4583957510f06d7419.tar.bz2
Mention both relevant PEPs in function annotations tutorial (GH-6304)
Patch by Neeraj Badlani. (cherry picked from commit 643ff711faf417fc3428897dc7d36250ad2cb0e5) Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 30ef159..4bcdafd 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -678,8 +678,8 @@ Function Annotations
single: -> (return annotation assignment)
:ref:`Function annotations <function>` are completely optional metadata
-information about the types used by user-defined functions (see :pep:`484`
-for more information).
+information about the types used by user-defined functions (see :pep:`3107` and
+:pep:`484` for more information).
Annotations are stored in the :attr:`__annotations__` attribute of the function
as a dictionary and have no effect on any other part of the function. Parameter