From 32c9ab36c2ada10000472dc477504c0df3581c0a Mon Sep 17 00:00:00 2001 From: changlehung Date: Fri, 24 Apr 2026 23:34:27 +0800 Subject: [PATCH] Use parsed-literal for the slot column legend in c-api/typeobj.rst --- Doc/c-api/typeobj.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index d3d8239365f9bf..1b14dcad00b403 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -169,19 +169,19 @@ Quick Reference **"D"**: default (if slot is set to ``NULL``) - .. code-block:: none + .. parsed-literal:: - X - PyType_Ready sets this value if it is NULL - ~ - PyType_Ready always sets this value (it should be NULL) - ? - PyType_Ready may set this value depending on other slots + X - :c:func:`PyType_Ready` sets this value if it is ``NULL`` + ~ - :c:func:`PyType_Ready` always sets this value (it should be ``NULL``) + ? - :c:func:`PyType_Ready` may set this value depending on other slots Also see the inheritance column ("I"). **"I"**: inheritance - .. code-block:: none + .. parsed-literal:: - X - type slot is inherited via *PyType_Ready* if defined with a *NULL* value + X - type slot is inherited via :c:func:`PyType_Ready` if defined with a ``NULL`` value % - the slots of the sub-struct are inherited individually G - inherited, but only in combination with other slots; see the slot's description ? - it's complicated; see the slot's description