diff options
author | Travis DePrato <773453+travigd@users.noreply.github.com> | 2018-05-15 02:07:21 (GMT) |
---|---|---|
committer | Ivan Levkivskyi <levkivskyi@gmail.com> | 2018-05-15 02:07:21 (GMT) |
commit | 295465dc2963d2d9c4bc6241a80e0f1fa73e1f9c (patch) | |
tree | a90f0e979b52f4b8863b81605b6acebbc440bc71 | |
parent | 3936fd7b2c271f723d1a98fda3ca9c7efd329c04 (diff) | |
download | cpython-295465dc2963d2d9c4bc6241a80e0f1fa73e1f9c.zip cpython-295465dc2963d2d9c4bc6241a80e0f1fa73e1f9c.tar.gz cpython-295465dc2963d2d9c4bc6241a80e0f1fa73e1f9c.tar.bz2 |
Add AsyncContextManager to typing module documentation. (GH-6823)
-rw-r--r-- | Doc/library/typing.rst | 7 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Documentation/2018-05-14-15-23-51.bpo-33421.3GU_QO.rst | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 9c4777a..4a8f2f8 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 0000000..75694b7 --- /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``. |