]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix async method reference links in `compound_stmts` docs (GH-94935)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 Jul 2022 17:11:25 +0000 (10:11 -0700)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 17:11:25 +0000 (10:11 -0700)
(cherry picked from commit 79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62)

Co-authored-by: July Tikhonov <july.tikh@gmail.com>
Doc/reference/compound_stmts.rst

index 871c101996b155e9dd22526ea3c5a1ecb2288c66..2b429681e1a6da013fb5f08a5559cdafa266bef8 100644 (file)
@@ -1447,7 +1447,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.
@@ -1489,7 +1489,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.