bpo-39231: correct tutorial annotations section (GH-25029)

This commit is contained in:
Irit Katriel 2021-03-27 17:20:58 +00:00 committed by GitHub
parent bacefbf414
commit a53e9a7cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: