From 295465dc2963d2d9c4bc6241a80e0f1fa73e1f9c Mon Sep 17 00:00:00 2001 From: Travis DePrato <773453+travigd@users.noreply.github.com> Date: Mon, 14 May 2018 22:07:21 -0400 Subject: [PATCH] Add AsyncContextManager to typing module documentation. (GH-6823) --- Doc/library/typing.rst | 7 +++++++ .../Documentation/2018-05-14-15-23-51.bpo-33421.3GU_QO.rst | 1 + 2 files changed, 8 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2018-05-14-15-23-51.bpo-33421.3GU_QO.rst diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 9c4777ac2fe5..4a8f2f8e12e6 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 000000000000..75694b7be1e7 --- /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``. -- 2.47.3