From: Travis DePrato <773453+travigd@users.noreply.github.com> Date: Tue, 15 May 2018 02:07:21 +0000 (-0400) Subject: Add AsyncContextManager to typing module documentation. (GH-6823) X-Git-Tag: v3.6.6rc1~137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=295465dc2963d2d9c4bc6241a80e0f1fa73e1f9c;p=python Add AsyncContextManager to typing module documentation. (GH-6823) --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 9c4777ac2f..4a8f2f8e12 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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 index 0000000000..75694b7be1 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2018-05-14-15-23-51.bpo-33421.3GU_QO.rst @@ -0,0 +1 @@ +Add missing documentation for ``typing.AsyncContextManager``.