Skip to content

Commit 133aa2d

Browse files
[docs] fix wrongly named AsyncContextDecorator (GH-23164)
Also added versionchanged.
1 parent 53a03aa commit 133aa2d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/library/contextlib.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -409,11 +409,11 @@ Functions and classes provided:
409409
.. versionadded:: 3.2
410410

411411

412-
.. class:: AsyncContextManager
412+
.. class:: AsyncContextDecorator
413413

414-
Similar as ContextManger only for async
414+
Similar to :class:`ContextDecorator` but only for asynchronous functions.
415415

416-
Example of ``ContextDecorator``::
416+
Example of ``AsyncContextDecorator``::
417417

418418
from asyncio import run
419419
from contextlib import AsyncContextDecorator
@@ -445,6 +445,8 @@ Functions and classes provided:
445445
The bit in the middle
446446
Finishing
447447

448+
.. versionadded:: 3.10
449+
448450

449451
.. class:: ExitStack()
450452

0 commit comments

Comments
 (0)