[docs] fix wrongly named AsyncContextDecorator (GH-23164)

Also added versionchanged.
This commit is contained in:
kj 2020-11-06 00:16:27 +08:00 committed by GitHub
parent 53a03aafd5
commit 133aa2d581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -409,11 +409,11 @@ Functions and classes provided:
.. versionadded:: 3.2 .. 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 asyncio import run
from contextlib import AsyncContextDecorator from contextlib import AsyncContextDecorator
@ -445,6 +445,8 @@ Functions and classes provided:
The bit in the middle The bit in the middle
Finishing Finishing
.. versionadded:: 3.10
.. class:: ExitStack() .. class:: ExitStack()