[Python-checkins] (no subject)

Stéphane Wirtel webhook-mailer at python.org
Thu Sep 19 01:24:33 EDT 2019




To: python-checkins at python.org
Subject: Doc: Corrected syntax for return annotation (GH-16265)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

https://github.com/python/cpython/commit/9ab6038fe843e1193d795eb58fd5931b44be=
5a96
commit: 9ab6038fe843e1193d795eb58fd5931b44be5a96
branch: master
author: Jason Plurad <pluradj at us.ibm.com>
committer: St=C3=A9phane Wirtel <stephane at wirtel.be>
date: 2019-09-19T07:24:29+02:00
summary:

Doc: Corrected syntax for return annotation (GH-16265)

Signed-off-by: Jason Plurad <pluradj at us.ibm.com>

files:
M Doc/tutorial/errors.rst

diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index 75a49259d440..c820e42ac471 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -400,7 +400,7 @@ If a :keyword:`finally` clause is present, the :keyword:`=
finally` clause will ex
=20
 For example::
=20
-   >>> def bool_return(): -> bool:
+   >>> def bool_return():
    ...     try:
    ...         return True
    ...     finally:



More information about the Python-checkins mailing list