From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 25 Apr 2018 18:04:49 +0000 (-0700) Subject: Mention both relevant PEPs in function annotations tutorial (GH-6304) X-Git-Tag: v3.7.0b4~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1985849fe287cde898f7978f23b938994b06f2ba;p=python Mention both relevant PEPs in function annotations tutorial (GH-6304) Patch by Neeraj Badlani. (cherry picked from commit 643ff711faf417fc3428897dc7d36250ad2cb0e5) Co-authored-by: Neeraj Badlani --- diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 30ef159f8b..4bcdafd733 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -678,8 +678,8 @@ Function Annotations single: -> (return annotation assignment) :ref:`Function annotations ` 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