]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-41624: fix documentation of typing.Coroutine (GH-21952) (#21982)
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>
Fri, 28 Aug 2020 15:06:31 +0000 (20:36 +0530)
committerGitHub <noreply@github.com>
Fri, 28 Aug 2020 15:06:31 +0000 (08:06 -0700)
(cherry picked from commit 8c58d2a)

Co-authored-by: MingZhe Hu <humingzhework@163.com>
Co-authored-by: MingZhe Hu <humingzhework@163.com>
Doc/library/typing.rst
Misc/NEWS.d/next/Documentation/2020-08-25-15-11-23.bpo-41624.ddjJlN.rst [new file with mode: 0644]

index 8208680669de6e251fce1fd5e8672e7eb15f1e61..9f98f8ce3f642dc1d16f74e21ccaab9cb57e45de 100644 (file)
@@ -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 (file)
index 0000000..bdbc5a4
--- /dev/null
@@ -0,0 +1 @@
+Fix the signature of :class:`typing.Coroutine`.