[Python-checkins] Mention both relevant PEPs in function annotations tutorial (GH-6304)
Zachary Ware
webhook-mailer at python.org
Wed Apr 25 13:52:19 EDT 2018
https://github.com/python/cpython/commit/643ff711faf417fc3428897dc7d36250ad2cb0e5
commit: 643ff711faf417fc3428897dc7d36250ad2cb0e5
branch: master
author: Neeraj Badlani <neerajbadlani at gmail.com>
committer: Zachary Ware <zachary.ware at gmail.com>
date: 2018-04-25T12:52:13-05:00
summary:
Mention both relevant PEPs in function annotations tutorial (GH-6304)
Patch by Neeraj Badlani.
files:
M Doc/tutorial/controlflow.rst
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 30ef159f8b36..4bcdafd73352 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
More information about the Python-checkins
mailing list