From: Irit Katriel Date: Sat, 27 Mar 2021 17:20:58 +0000 (+0000) Subject: bpo-39231: correct tutorial annotations section (GH-25029) X-Git-Tag: v3.10.0a7~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a53e9a7cf5912a44c5143e353912e44cfcfca7dc;p=thirdparty%2FPython%2Fcpython.git bpo-39231: correct tutorial annotations section (GH-25029) --- diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 277e5c18562d..0b09c18170dd 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -1038,7 +1038,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: