Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-40816: [docs] Fix wrongly named AsyncContextManager #23164

Merged
merged 1 commit into from
Nov 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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