@@ -106,8 +106,8 @@ Functions and classes provided:
106
106
107
107
This function is a :term: `decorator ` that can be used to define a factory
108
108
function for :keyword: `async with ` statement asynchronous context managers,
109
- without needing to create a class or separate :meth: `__aenter__ ` and
110
- :meth: `__aexit__ ` methods. It must be applied to an :term: `asynchronous
109
+ without needing to create a class or separate :meth: `~object. __aenter__ ` and
110
+ :meth: `~object. __aexit__ ` methods. It must be applied to an :term: `asynchronous
111
111
generator ` function.
112
112
113
113
A simple example::
@@ -609,12 +609,12 @@ Functions and classes provided:
609
609
asynchronous context managers, as well as having coroutines for
610
610
cleanup logic.
611
611
612
- The :meth: `close ` method is not implemented, :meth: `aclose ` must be used
612
+ The :meth: `~ExitStack. close ` method is not implemented; :meth: `aclose ` must be used
613
613
instead.
614
614
615
615
.. coroutinemethod :: enter_async_context(cm)
616
616
617
- Similar to :meth: `enter_context ` but expects an asynchronous context
617
+ Similar to :meth: `ExitStack. enter_context ` but expects an asynchronous context
618
618
manager.
619
619
620
620
.. versionchanged :: 3.11
@@ -623,16 +623,16 @@ Functions and classes provided:
623
623
624
624
.. method :: push_async_exit(exit)
625
625
626
- Similar to :meth: `push ` but expects either an asynchronous context manager
626
+ Similar to :meth: `ExitStack. push ` but expects either an asynchronous context manager
627
627
or a coroutine function.
628
628
629
629
.. method :: push_async_callback(callback, /, *args, **kwds)
630
630
631
- Similar to :meth: `callback ` but expects a coroutine function.
631
+ Similar to :meth: `ExitStack. callback ` but expects a coroutine function.
632
632
633
633
.. coroutinemethod :: aclose()
634
634
635
- Similar to :meth: `close ` but properly handles awaitables.
635
+ Similar to :meth: `ExitStack. close ` but properly handles awaitables.
636
636
637
637
Continuing the example for :func: `asynccontextmanager `::
638
638
0 commit comments