]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41624: fix documentation of typing.Coroutine (GH-21952)
authorMingZhe Hu <humingzhework@163.com>
Thu, 27 Aug 2020 00:42:37 +0000 (08:42 +0800)
committerGitHub <noreply@github.com>
Thu, 27 Aug 2020 00:42:37 +0000 (02:42 +0200)
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`.