Skip to content

Commit

Permalink
[docs] fix wrongly named AsyncContextDecorator (pythonGH-23164)
Browse files Browse the repository at this point in the history
Also added versionchanged.
  • Loading branch information
Fidget-Spinner authored and adorilson committed Mar 11, 2021
1 parent f84560f commit 49f7456
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Doc/library/contextlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -445,6 +445,8 @@ Functions and classes provided:
The bit in the middle
Finishing

.. versionadded:: 3.10


.. class:: ExitStack()

Expand Down

0 comments on commit 49f7456

Please sign in to comment.