]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix async method reference links in `compound_stmts` docs (GH-94935)
authorJuly Tikhonov <july.tikh@gmail.com>
Fri, 22 Jul 2022 17:03:17 +0000 (20:03 +0300)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 17:03:17 +0000 (12:03 -0500)
Doc/reference/compound_stmts.rst

index 688407195f05ddb1a24fc07165ba671fa3d57cb3..93c1720220f0439d2fb172c1db184888aefea2e4 100644 (file)
@@ -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.
@@ -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.