bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870) (GH-26255)

(cherry picked from commit c054e8f78f)

Co-authored-by: naglis <naglis@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2021-05-19 13:37:52 -07:00 committed by GitHub
parent 021169f768
commit 9a75cc6044
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -463,7 +463,7 @@ Functions and classes provided:
The :meth:`close` method is not implemented, :meth:`aclose` must be used The :meth:`close` method is not implemented, :meth:`aclose` must be used
instead. instead.
.. method:: enter_async_context(cm) .. coroutinemethod:: enter_async_context(cm)
Similar to :meth:`enter_context` but expects an asynchronous context Similar to :meth:`enter_context` but expects an asynchronous context
manager. manager.
@ -477,7 +477,7 @@ Functions and classes provided:
Similar to :meth:`callback` but expects a coroutine function. Similar to :meth:`callback` but expects a coroutine function.
.. method:: aclose() .. coroutinemethod:: aclose()
Similar to :meth:`close` but properly handles awaitables. Similar to :meth:`close` but properly handles awaitables.