From b7b493e2fb00414e4766e1455cfd26ef15c4e5b8 Mon Sep 17 00:00:00 2001 From: Travis DePrato <773453+travigd@users.noreply.github.com> Date: Mon, 14 May 2018 18:14:07 -0400 Subject: [PATCH] Add AsyncContextManager to typing module documentation. (GH-6822) --- Doc/library/typing.rst | 6 ++++++ .../Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst | 1 + 2 files changed, 7 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 9c4777ac2f..142e169b89 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 0000000000..75694b7be1 --- /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``. -- 2.40.0