We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9de6451 commit 6fcebbbCopy full SHA for 6fcebbb
Doc/tutorial/controlflow.rst
@@ -866,7 +866,7 @@ function. Parameter annotations are defined by a colon after the parameter name
866
by an expression evaluating to the value of the annotation. Return annotations are
867
defined by a literal ``->``, followed by an expression, between the parameter
868
list and the colon denoting the end of the :keyword:`def` statement. The
869
-following example has a positional argument, a keyword argument, and the return
+following example has a required argument, an optional argument, and the return
870
value annotated::
871
872
>>> def f(ham: str, eggs: str = 'eggs') -> str:
0 commit comments