We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bacefbf commit a53e9a7Copy full SHA for a53e9a7
Doc/tutorial/controlflow.rst
@@ -1038,7 +1038,7 @@ function. Parameter annotations are defined by a colon after the parameter name
1038
by an expression evaluating to the value of the annotation. Return annotations are
1039
defined by a literal ``->``, followed by an expression, between the parameter
1040
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
+following example has a required argument, an optional argument, and the return
1042
value annotated::
1043
1044
>>> def f(ham: str, eggs: str = 'eggs') -> str:
0 commit comments