]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[docs] fix wrongly named AsyncContextDecorator (GH-23164)
authorkj <28750310+Fidget-Spinner@users.noreply.github.com>
Thu, 5 Nov 2020 16:16:27 +0000 (00:16 +0800)
committerGitHub <noreply@github.com>
Thu, 5 Nov 2020 16:16:27 +0000 (18:16 +0200)
Also added versionchanged.

Doc/library/contextlib.rst

index ee2becb8dff20deb5f11a241bc37c68698943c2f..d5a1068a734fd69323417aa7aef3681f0a98cd67 100644 (file)
@@ -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()