diff options
| author | MingZhe Hu <humingzhework@163.com> | 2020-08-27 00:42:37 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-27 00:42:37 (GMT) |
| commit | 8c58d2a216ca2b5965361df9b8d8944bc7d4854d (patch) | |
| tree | cf0c91db636d05495e2fbf0b23b00f8b50db43d4 | |
| parent | 94ad6c674f7687ef22853cb8d42b440d6b42ddc8 (diff) | |
| download | cpython-8c58d2a216ca2b5965361df9b8d8944bc7d4854d.zip cpython-8c58d2a216ca2b5965361df9b8d8944bc7d4854d.tar.gz cpython-8c58d2a216ca2b5965361df9b8d8944bc7d4854d.tar.bz2 | |
bpo-41624: fix documentation of typing.Coroutine (GH-21952)
| -rw-r--r-- | Doc/library/typing.rst | 2 | ||||
| -rw-r--r-- | Misc/NEWS.d/next/Documentation/2020-08-25-15-11-23.bpo-41624.ddjJlN.rst | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 8208680..9f98f8c 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 0000000..bdbc5a4 --- /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`. |
