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

MingZhe Hu webhook-mailer at python.org
Wed Aug 26 20:43:13 EDT 2020


https://github.com/python/cpython/commit/8c58d2a216ca2b5965361df9b8d8944bc7d4854d
commit: 8c58d2a216ca2b5965361df9b8d8944bc7d4854d
branch: master
author: MingZhe Hu <humingzhework at 163.com>
committer: GitHub <noreply at github.com>
date: 2020-08-27T02:42:37+02:00
summary:

bpo-41624: fix documentation of typing.Coroutine (GH-21952)

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 8208680669de6..9f98f8ce3f642 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1365,7 +1365,7 @@ Corresponding to other types in :mod:`collections.abc`
 Asynchronous programming
 """"""""""""""""""""""""
 
-.. 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