From: Karthikeyan Singaravelan Date: Fri, 28 Aug 2020 15:06:31 +0000 (+0530) Subject: [3.9] bpo-41624: fix documentation of typing.Coroutine (GH-21952) (#21982) X-Git-Tag: v3.9.0rc2~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c01a7edc67e2c2e13a6d9513f111f27761786e27;p=thirdparty%2FPython%2Fcpython.git [3.9] bpo-41624: fix documentation of typing.Coroutine (GH-21952) (#21982) (cherry picked from commit 8c58d2a) Co-authored-by: MingZhe Hu Co-authored-by: MingZhe Hu --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 8208680669de..9f98f8ce3f64 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 000000000000..bdbc5a445f33 --- /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`.