Skip to content

Commit a8a79ca

Browse files
andresdelfinomiss-islington
authored andcommitted
Improve grammar on async context managers and shorten text (GH-12379)
1 parent 5861cdd commit a8a79ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/reference/datamodel.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,13 +2680,13 @@ Asynchronous context managers can be used in an :keyword:`async with` statement.
26802680

26812681
.. method:: object.__aenter__(self)
26822682

2683-
This method is semantically similar to the :meth:`__enter__`, with only
2684-
difference that it must return an *awaitable*.
2683+
Semantically similar to :meth:`__enter__`, the only
2684+
difference being that it must return an *awaitable*.
26852685

26862686
.. method:: object.__aexit__(self, exc_type, exc_value, traceback)
26872687

2688-
This method is semantically similar to the :meth:`__exit__`, with only
2689-
difference that it must return an *awaitable*.
2688+
Semantically similar to :meth:`__exit__`, the only
2689+
difference being that it must return an *awaitable*.
26902690

26912691
An example of an asynchronous context manager class::
26922692

0 commit comments

Comments
 (0)