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

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