mirror of https://github.com/python/cpython.git
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870) (GH-26254)
(cherry picked from commit c054e8f78f
)
Co-authored-by: naglis <naglis@users.noreply.github.com>
This commit is contained in:
parent
46f96f00f7
commit
65dede60fa
|
@ -578,7 +578,7 @@ Functions and classes provided:
|
|||
The :meth:`close` method is not implemented, :meth:`aclose` must be used
|
||||
instead.
|
||||
|
||||
.. method:: enter_async_context(cm)
|
||||
.. coroutinemethod:: enter_async_context(cm)
|
||||
|
||||
Similar to :meth:`enter_context` but expects an asynchronous context
|
||||
manager.
|
||||
|
@ -592,7 +592,7 @@ Functions and classes provided:
|
|||
|
||||
Similar to :meth:`callback` but expects a coroutine function.
|
||||
|
||||
.. method:: aclose()
|
||||
.. coroutinemethod:: aclose()
|
||||
|
||||
Similar to :meth:`close` but properly handles awaitables.
|
||||
|
||||
|
|
Loading…
Reference in New Issue