We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 290802f commit 171c597Copy full SHA for 171c597
1 file changed
Doc/library/contextlib.rst
@@ -31,10 +31,12 @@ Functions and classes provided:
31
32
.. class:: AbstractAsyncContextManager
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__`.
+ An :term:`abstract base class` for classes that implement
+ :meth:`object.__aenter__` and :meth:`object.__aexit__`. A default
+ implementation for :meth:`object.__aenter__` is provided which returns
+ ``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`.
40
41
.. versionadded:: 3.7
42
0 commit comments