mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
Mention both relevant PEPs in function annotations tutorial (GH-6304)
Patch by Neeraj Badlani.
(cherry picked from commit 643ff711fa
)
Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
This commit is contained in:
parent
52a5a17338
commit
1985849fe2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue