Skip to content

Commit

Permalink
Fix async method reference links in compound_stmts docs (pythonGH-9…
Browse files Browse the repository at this point in the history
…4935)

(cherry picked from commit 79d2f54)

Co-authored-by: July Tikhonov <[email protected]>
  • Loading branch information
miss-islington and tifv authored Jul 22, 2022
1 parent 0fda874 commit e99496e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/reference/compound_stmts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ Is semantically equivalent to::
else:
SUITE2

See also :meth:`__aiter__` and :meth:`__anext__` for details.
See also :meth:`~object.__aiter__` and :meth:`~object.__anext__` for details.

It is a :exc:`SyntaxError` to use an ``async for`` statement outside the
body of a coroutine function.
Expand Down Expand Up @@ -1537,7 +1537,7 @@ is semantically equivalent to::
if not hit_except:
await aexit(manager, None, None, None)

See also :meth:`__aenter__` and :meth:`__aexit__` for details.
See also :meth:`~object.__aenter__` and :meth:`~object.__aexit__` for details.

It is a :exc:`SyntaxError` to use an ``async with`` statement outside the
body of a coroutine function.
Expand Down

0 comments on commit e99496e

Please sign in to comment.