File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,12 @@ Functions and classes provided:
31
31
32
32
.. class :: AbstractAsyncContextManager
33
33
34
- An :term: `abstract base class ` similar to
35
- :class: `~contextlib.AbstractContextManager `, but for
36
- :ref: `asynchronous context managers <async-context-managers >`, which
37
- implement :meth: `object.__aenter__ ` and :meth: `object.__aexit__ `.
34
+ An :term: `abstract base class ` for classes that implement
35
+ :meth: `object.__aenter__ ` and :meth: `object.__aexit__ `. A default
36
+ implementation for :meth: `object.__aenter__ ` is provided which returns
37
+ ``self `` while :meth: `object.__aexit__ ` is an abstract method which by default
38
+ returns ``None ``. See also the definition of
39
+ :ref: `async-context-managers `.
38
40
39
41
.. versionadded :: 3.7
40
42
You can’t perform that action at this time.
0 commit comments