[Python-checkins] Add AsyncContextManager to typing module documentation. (GH-6822)

Miss Islington (bot) webhook-mailer at python.org
Mon May 14 21:10:56 EDT 2018


https://github.com/python/cpython/commit/cc598ae26447a10d1580d95b8442e8ce3c68baea
commit: cc598ae26447a10d1580d95b8442e8ce3c68baea
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-05-14T18:10:47-07:00
summary:

Add AsyncContextManager to typing module documentation. (GH-6822)

(cherry picked from commit b7b493e2fb00414e4766e1455cfd26ef15c4e5b8)

Co-authored-by: Travis DePrato <773453+travigd at users.noreply.github.com>

files:
A Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 9c4777ac2fe5..142e169b89c4 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -666,6 +666,12 @@ The module defines the following classes, functions and decorators:
 
    .. versionadded:: 3.6
 
+.. class:: AsyncContextManager(Generic[T_co])
+
+   A generic version of :class:`contextlib.AbstractAsyncContextManager`.
+
+   .. versionadded:: 3.6
+
 .. class:: Dict(dict, MutableMapping[KT, VT])
 
    A generic version of :class:`dict`.
diff --git a/Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst b/Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst
new file mode 100644
index 000000000000..75694b7be1e7
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst
@@ -0,0 +1 @@
+Add missing documentation for ``typing.AsyncContextManager``.



More information about the Python-checkins mailing list