From a45d981ede3b07278d04c05e4e4bd201bc58f33b Mon Sep 17 00:00:00 2001 From: Mingzhe Hu Date: Tue, 25 Aug 2020 14:20:30 +0800 Subject: [PATCH 1/2] bpo-41624: fix documentation of typing.Coroutine --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 8208680669de6e2..9f98f8ce3f642dc 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 From e7cb6c7a1d5536348febcda613f4739802f5b92f Mon Sep 17 00:00:00 2001 From: Mingzhe Hu Date: Tue, 25 Aug 2020 15:22:18 +0800 Subject: [PATCH 2/2] bpo-41624: fix documentation of typing.Coroutine --- .../next/Documentation/2020-08-25-15-11-23.bpo-41624.ddjJlN.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Documentation/2020-08-25-15-11-23.bpo-41624.ddjJlN.rst 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 000000000000000..bdbc5a445f3390e --- /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`.