[Python-checkins] (no subject)

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




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

https://github.com/python/cpython/commit/20d3bce3effd7cca71a9bf3caa247eef2791=
517b
commit: 20d3bce3effd7cca71a9bf3caa247eef2791517b
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.co=
m>
committer: St=C3=A9phane Wirtel <stephane at wirtel.be>
date: 2019-09-19T07:37:38+02:00
summary:

[3.7] bpo-38218: Doc: Corrected syntax for return annotation (GH-16265) (GH-1=
6275)

Signed-off-by: Jason Plurad <pluradj at us.ibm.com>
(cherry picked from commit 9ab6038fe843e1193d795eb58fd5931b44be5a96)

Co-authored-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 0ddf0cc0042d..9585f0673aec 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -353,7 +353,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