summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorYuki Kobayashi <drsuaimqjgar@gmail.com>2024-11-30 15:01:15 (GMT)
committerGitHub <noreply@github.com>2024-11-30 15:01:15 (GMT)
commit33ce8dcf791721fea563715f681dc1593a35b83b (patch)
tree3c6447884a7c5c68db23db41b4b28bf745f9d798 /Doc/c-api
parent7043bbd1ca6f0d84ad2211dd60114535ba3d51fc (diff)
downloadcpython-33ce8dcf791721fea563715f681dc1593a35b83b.zip
cpython-33ce8dcf791721fea563715f681dc1593a35b83b.tar.gz
cpython-33ce8dcf791721fea563715f681dc1593a35b83b.tar.bz2
Docs: Fix incorrect indents in `c-api/type.rst` (#127449)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/type.rst48
1 files changed, 23 insertions, 25 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index 86d3967..444b345 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -529,19 +529,19 @@ The following functions and structs are used to create
The following “offset” fields cannot be set using :c:type:`PyType_Slot`:
- * :c:member:`~PyTypeObject.tp_weaklistoffset`
- (use :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)
- * :c:member:`~PyTypeObject.tp_dictoffset`
- (use :c:macro:`Py_TPFLAGS_MANAGED_DICT` instead if possible)
- * :c:member:`~PyTypeObject.tp_vectorcall_offset`
- (use ``"__vectorcalloffset__"`` in
- :ref:`PyMemberDef <pymemberdef-offsets>`)
-
- If it is not possible to switch to a ``MANAGED`` flag (for example,
- for vectorcall or to support Python older than 3.12), specify the
- offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
- See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
- for details.
+ * :c:member:`~PyTypeObject.tp_weaklistoffset`
+ (use :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)
+ * :c:member:`~PyTypeObject.tp_dictoffset`
+ (use :c:macro:`Py_TPFLAGS_MANAGED_DICT` instead if possible)
+ * :c:member:`~PyTypeObject.tp_vectorcall_offset`
+ (use ``"__vectorcalloffset__"`` in
+ :ref:`PyMemberDef <pymemberdef-offsets>`)
+
+ If it is not possible to switch to a ``MANAGED`` flag (for example,
+ for vectorcall or to support Python older than 3.12), specify the
+ offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
+ See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
+ for details.
The following internal fields cannot be set at all when creating a heap
type:
@@ -557,20 +557,18 @@ The following functions and structs are used to create
To avoid issues, use the *bases* argument of
:c:func:`PyType_FromSpecWithBases` instead.
- .. versionchanged:: 3.9
-
- Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
+ .. versionchanged:: 3.9
+ Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
- .. versionchanged:: 3.11
- :c:member:`~PyBufferProcs.bf_getbuffer` and
- :c:member:`~PyBufferProcs.bf_releasebuffer` are now available
- under the :ref:`limited API <limited-c-api>`.
+ .. versionchanged:: 3.11
+ :c:member:`~PyBufferProcs.bf_getbuffer` and
+ :c:member:`~PyBufferProcs.bf_releasebuffer` are now available
+ under the :ref:`limited API <limited-c-api>`.
- .. versionchanged:: 3.14
-
- The field :c:member:`~PyTypeObject.tp_vectorcall` can now set
- using ``Py_tp_vectorcall``. See the field's documentation
- for details.
+ .. versionchanged:: 3.14
+ The field :c:member:`~PyTypeObject.tp_vectorcall` can now set
+ using ``Py_tp_vectorcall``. See the field's documentation
+ for details.
.. c:member:: void *pfunc