diff options
author | Neeraj Badlani <neerajbadlani@gmail.com> | 2018-04-25 17:52:13 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2018-04-25 17:52:13 (GMT) |
commit | 643ff711faf417fc3428897dc7d36250ad2cb0e5 (patch) | |
tree | 26d41e44b381c5c6039884a6550aa4b58b6d89ff /Doc | |
parent | d6ef6db9ff780efb2cd502a54ca208afbe84af9c (diff) | |
download | cpython-643ff711faf417fc3428897dc7d36250ad2cb0e5.zip cpython-643ff711faf417fc3428897dc7d36250ad2cb0e5.tar.gz cpython-643ff711faf417fc3428897dc7d36250ad2cb0e5.tar.bz2 |
Mention both relevant PEPs in function annotations tutorial (GH-6304)
Patch by Neeraj Badlani.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 4 |
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 |