summaryrefslogtreecommitdiffstats
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
parent545c955be997efd6b3827b981024e6b9945d82d1 (diff)
downloadcpython-b7b493e2fb00414e4766e1455cfd26ef15c4e5b8.zip
cpython-b7b493e2fb00414e4766e1455cfd26ef15c4e5b8.tar.gz
cpython-b7b493e2fb00414e4766e1455cfd26ef15c4e5b8.tar.bz2
Add AsyncContextManager to typing module documentation. (GH-6822)
-rw-r--r--Doc/library/typing.rst6
-rw-r--r--Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst1
2 files changed, 7 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`.
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 0000000..75694b7
--- /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``.