]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39231: correct tutorial annotations section (GH-25029)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Mar 2021 17:30:55 +0000 (10:30 -0700)
committerGitHub <noreply@github.com>
Sat, 27 Mar 2021 17:30:55 +0000 (10:30 -0700)
(cherry picked from commit a53e9a7cf5912a44c5143e353912e44cfcfca7dc)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Doc/tutorial/controlflow.rst

index 97b4c6363a239c7326671b41cf6658c4ee48b721..284b68c0010aacf0c6487c3f031de67aa3afa322 100644 (file)
@@ -866,7 +866,7 @@ function.  Parameter annotations are defined by a colon after the parameter name
 by an expression evaluating to the value of the annotation.  Return annotations are
 defined by a literal ``->``, followed by an expression, between the parameter
 list and the colon denoting the end of the :keyword:`def` statement.  The
-following example has a positional argument, a keyword argument, and the return
+following example has a required argument, an optional argument, and the return
 value annotated::
 
    >>> def f(ham: str, eggs: str = 'eggs') -> str: