summaryrefslogtreecommitdiffstats
path: root/Doc/library/contextlib.rst
diff options
context:
space:
mode:
authorkj <28750310+Fidget-Spinner@users.noreply.github.com>2020-11-05 16:16:27 (GMT)
committerGitHub <noreply@github.com>2020-11-05 16:16:27 (GMT)
commit133aa2d5816b69d8ee755e1a9d2d1977b9205736 (patch)
treee9bd6db6abbd8491c2c472e828914ab962a5f5e3 /Doc/library/contextlib.rst
parent53a03aafd5812018a3821a2e83063fd3d6cd2576 (diff)
downloadcpython-133aa2d5816b69d8ee755e1a9d2d1977b9205736.zip
cpython-133aa2d5816b69d8ee755e1a9d2d1977b9205736.tar.gz
cpython-133aa2d5816b69d8ee755e1a9d2d1977b9205736.tar.bz2
[docs] fix wrongly named AsyncContextDecorator (GH-23164)
Also added versionchanged.
Diffstat (limited to 'Doc/library/contextlib.rst')
-rw-r--r--Doc/library/contextlib.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index ee2becb..d5a1068 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -409,11 +409,11 @@ Functions and classes provided:
.. versionadded:: 3.2
-.. class:: AsyncContextManager
+.. class:: AsyncContextDecorator
- Similar as ContextManger only for async
+ Similar to :class:`ContextDecorator` but only for asynchronous functions.
- Example of ``ContextDecorator``::
+ Example of ``AsyncContextDecorator``::
from asyncio import run
from contextlib import AsyncContextDecorator
@@ -445,6 +445,8 @@ Functions and classes provided:
The bit in the middle
Finishing
+ .. versionadded:: 3.10
+
.. class:: ExitStack()