summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTravis DePrato <773453+travigd@users.noreply.github.com>2018-05-14 22:14:07 (GMT)
committerIvan Levkivskyi <levkivskyi@gmail.com>2018-05-14 22:14:07 (GMT)
commitb7b493e2fb00414e4766e1455cfd26ef15c4e5b8 (patch)
tree622837f4cc35e962f1ccc6a3f5c5bd001088d061 /Doc
parent545c955be997efd6b3827b981024e6b9945d82d1 (diff)
downloadcpython-b7b493e2fb00414e4766e1455cfd26ef15c4e5b8.zip
cpython-b7b493e2fb00414e4766e1455cfd26ef15c4e5b8.tar.gz
cpython-b7b493e2fb00414e4766e1455cfd26ef15c4e5b8.tar.bz2
Add AsyncContextManager to typing module documentation. (GH-6822)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/typing.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 9c4777a..142e169 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`.