Skip to content

Commit 6fcebbb

Browse files
bpo-39231: correct tutorial annotations section (GH-25029)
(cherry picked from commit a53e9a7) Co-authored-by: Irit Katriel <[email protected]>
1 parent 9de6451 commit 6fcebbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ function. Parameter annotations are defined by a colon after the parameter name
866866
by an expression evaluating to the value of the annotation. Return annotations are
867867
defined by a literal ``->``, followed by an expression, between the parameter
868868
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
869+
following example has a required argument, an optional argument, and the return
870870
value annotated::
871871

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

0 commit comments

Comments
 (0)