[Python-checkins] [3.8] bpo-41624: fix documentation of typing.Coroutine (GH-21952). (#21983)

Karthikeyan Singaravelan webhook-mailer at python.org
Fri Aug 28 11:04:12 EDT 2020


https://github.com/python/cpython/commit/838316db08a8e3174e4cf8db233ff69d388b3f5c
commit: 838316db08a8e3174e4cf8db233ff69d388b3f5c
branch: 3.8
author: Karthikeyan Singaravelan <tir.karthi at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-08-28T08:03:40-07:00
summary:

[3.8] bpo-41624: fix documentation of typing.Coroutine (GH-21952). (#21983)

(cherry picked from commit 8c58d2a216ca2b5965361df9b8d8944bc7d4854d)

Co-authored-by: MingZhe Hu <humingzhework at 163.com>

Co-authored-by: MingZhe Hu <humingzhework at 163.com>

files:
A Misc/NEWS.d/next/Documentation/2020-08-25-15-11-23.bpo-41624.ddjJlN.rst
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 405562ba2a8f8..0706bc870ea3d 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -733,7 +733,7 @@ The module defines the following classes, functions and decorators:
 
    .. versionadded:: 3.5.2
 
-.. class:: Coroutine(Awaitable[V_co], Generic[T_co T_contra, V_co])
+.. class:: Coroutine(Awaitable[V_co], Generic[T_co, T_contra, V_co])
 
    A generic version of :class:`collections.abc.Coroutine`.
    The variance and order of type variables
diff --git a/Misc/NEWS.d/next/Documentation/2020-08-25-15-11-23.bpo-41624.ddjJlN.rst b/Misc/NEWS.d/next/Documentation/2020-08-25-15-11-23.bpo-41624.ddjJlN.rst
new file mode 100644
index 0000000000000..bdbc5a445f339
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2020-08-25-15-11-23.bpo-41624.ddjJlN.rst
@@ -0,0 +1 @@
+Fix the signature of :class:`typing.Coroutine`.



More information about the Python-checkins mailing list