]> granicus.if.org Git - python/commitdiff
Add AsyncContextManager to typing module documentation. (GH-6823)
authorTravis DePrato <773453+travigd@users.noreply.github.com>
Tue, 15 May 2018 02:07:21 +0000 (22:07 -0400)
committerIvan Levkivskyi <levkivskyi@gmail.com>
Tue, 15 May 2018 02:07:21 +0000 (22:07 -0400)
Doc/library/typing.rst
Misc/NEWS.d/next/Documentation/2018-05-14-15-23-51.bpo-33421.3GU_QO.rst [new file with mode: 0644]

index 9c4777ac2fe5803c9cf1c4e13a9ea6ff35f68715..4a8f2f8e12e67f31540061215b11c42fc25eb2a9 100644 (file)
@@ -666,6 +666,13 @@ The module defines the following classes, functions and decorators:
 
    .. versionadded:: 3.6
 
+.. class:: AsyncContextManager(Generic[T_co])
+
+   An ABC with async abstract :meth:`__aenter__` and :meth:`__aexit__`
+   methods.
+
+   .. 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-23-51.bpo-33421.3GU_QO.rst b/Misc/NEWS.d/next/Documentation/2018-05-14-15-23-51.bpo-33421.3GU_QO.rst
new file mode 100644 (file)
index 0000000..75694b7
--- /dev/null
@@ -0,0 +1 @@
+Add missing documentation for ``typing.AsyncContextManager``.