Skip to content

Commit 171c597

Browse files
committed
rewrite docs as suggested by @1st1
1 parent 290802f commit 171c597

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Doc/library/contextlib.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ Functions and classes provided:
3131

3232
.. class:: AbstractAsyncContextManager
3333

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`.
3840

3941
.. versionadded:: 3.7
4042

0 commit comments

Comments
 (0)