Skip to content

Commit a53e9a7

Browse files
authored
bpo-39231: correct tutorial annotations section (GH-25029)
1 parent bacefbf commit a53e9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/controlflow.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ function. Parameter annotations are defined by a colon after the parameter name
10381038
by an expression evaluating to the value of the annotation. Return annotations are
10391039
defined by a literal ``->``, followed by an expression, between the parameter
10401040
list and the colon denoting the end of the :keyword:`def` statement. The
1041-
following example has a positional argument, a keyword argument, and the return
1041+
following example has a required argument, an optional argument, and the return
10421042
value annotated::
10431043

10441044
>>> def f(ham: str, eggs: str = 'eggs') -> str:

0 commit comments

Comments
 (0)