@@ -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::
@@ -616,12 +616,12 @@ Functions and classes provided:
616
616
asynchronous context managers, as well as having coroutines for
617
617
cleanup logic.
618
618
619
- The :meth: `close ` method is not implemented, :meth: `aclose ` must be used
619
+ The :meth: `~ExitStack. close ` method is not implemented; :meth: `aclose ` must be used
620
620
instead.
621
621
622
622
.. coroutinemethod :: enter_async_context(cm)
623
623
624
- Similar to :meth: `enter_context ` but expects an asynchronous context
624
+ Similar to :meth: `ExitStack. enter_context ` but expects an asynchronous context
625
625
manager.
626
626
627
627
.. versionchanged :: 3.11
@@ -630,16 +630,16 @@ Functions and classes provided:
630
630
631
631
.. method :: push_async_exit(exit)
632
632
633
- Similar to :meth: `push ` but expects either an asynchronous context manager
633
+ Similar to :meth: `ExitStack. push ` but expects either an asynchronous context manager
634
634
or a coroutine function.
635
635
636
636
.. method :: push_async_callback(callback, /, *args, **kwds)
637
637
638
- Similar to :meth: `callback ` but expects a coroutine function.
638
+ Similar to :meth: `ExitStack. callback ` but expects a coroutine function.
639
639
640
640
.. coroutinemethod :: aclose()
641
641
642
- Similar to :meth: `close ` but properly handles awaitables.
642
+ Similar to :meth: `ExitStack. close ` but properly handles awaitables.
643
643
644
644
Continuing the example for :func: `asynccontextmanager `::
645
645
0 commit comments