8000 [docs] fix wrongly named AsyncContextDecorator (GH-23164) · adorilson/cpython@49f7456 · GitHub
[go: up one dir, main page]

Skip to content

Commit 49f7456

Browse files
Fidget-Spinneradorilson
authored andcommitted
[docs] fix wrongly named AsyncContextDecorator (pythonGH-23164)
Also added versionchanged.
1 parent f84560f commit 49f7456

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/library/contextlib.rst

Lines changed: 5 additions & 3 deletions
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)
0