]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix sphinx-lint warnings (default-role used). (GH-134647)
authorJulien Palard <julien@palard.fr>
Sun, 25 May 2025 19:22:52 +0000 (21:22 +0200)
committerGitHub <noreply@github.com>
Sun, 25 May 2025 19:22:52 +0000 (21:22 +0200)
Doc/c-api/code.rst
Doc/c-api/function.rst
Doc/c-api/typeobj.rst

index 6eae24b38fae48a4b35dedef19cf6e3ad4d3a7ff..42594f063b07091c591e4baed5f61fb76508409f 100644 (file)
@@ -182,7 +182,7 @@ bound into a function.
    Type of a code object watcher callback function.
 
    If *event* is ``PY_CODE_EVENT_CREATE``, then the callback is invoked
-   after `co` has been fully initialized. Otherwise, the callback is invoked
+   after *co* has been fully initialized. Otherwise, the callback is invoked
    before the destruction of *co* takes place, so the prior state of *co*
    can be inspected.
 
index 58792edeed25e3df582c4108e3b577c571f35fc6..63b78f677674e96fa81af1dffc8c4d44f3f0b5bc 100644 (file)
@@ -169,7 +169,7 @@ There are a few functions specific to Python functions.
    unpredictable effects, including infinite recursion.
 
    If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked
-   after `func` has been fully initialized. Otherwise, the callback is invoked
+   after *func* has been fully initialized. Otherwise, the callback is invoked
    before the modification to *func* takes place, so the prior state of *func*
    can be inspected. The runtime is permitted to optimize away the creation of
    function objects when possible. In such cases no event will be emitted.
index 5df0c0fe608e5301fcdbe9c59400655f58c5bdaa..91046c0e6f18aea64a50ac427bd0c214488fe5fa 100644 (file)
@@ -1238,7 +1238,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
 
    .. c:macro:: Py_TPFLAGS_MANAGED_DICT
 
-      This bit indicates that instances of the class have a `~object.__dict__`
+      This bit indicates that instances of the class have a :attr:`~object.__dict__`
       attribute, and that the space for the dictionary is managed by the VM.
 
       If this flag is set, :c:macro:`Py_TPFLAGS_HAVE_GC` should also be set.