Skip to content

Commit a2814b9

Browse files
authored
[3.13] Docs: Fix incorrect indents in c-api/type.rst (GH-127449) (#127460)
(cherry picked from commit 33ce8dc)
1 parent 06acb95 commit a2814b9

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

Doc/c-api/type.rst

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -480,19 +480,19 @@ The following functions and structs are used to create
480480
481481
The following “offset” fields cannot be set using :c:type:`PyType_Slot`:
482482
483-
* :c:member:`~PyTypeObject.tp_weaklistoffset`
484-
(use :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)
485-
* :c:member:`~PyTypeObject.tp_dictoffset`
486-
(use :c:macro:`Py_TPFLAGS_MANAGED_DICT` instead if possible)
487-
* :c:member:`~PyTypeObject.tp_vectorcall_offset`
488-
(use ``"__vectorcalloffset__"`` in
489-
:ref:`PyMemberDef <pymemberdef-offsets>`)
490-
491-
If it is not possible to switch to a ``MANAGED`` flag (for example,
492-
for vectorcall or to support Python older than 3.12), specify the
493-
offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
494-
See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
495-
for details.
483+
* :c:member:`~PyTypeObject.tp_weaklistoffset`
484+
(use :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)
485+
* :c:member:`~PyTypeObject.tp_dictoffset`
486+
(use :c:macro:`Py_TPFLAGS_MANAGED_DICT` instead if possible)
487+
* :c:member:`~PyTypeObject.tp_vectorcall_offset`
488+
(use ``"__vectorcalloffset__"`` in
489+
:ref:`PyMemberDef <pymemberdef-offsets>`)
490+
491+
If it is not possible to switch to a ``MANAGED`` flag (for example,
492+
for vectorcall or to support Python older than 3.12), specify the
493+
offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
494+
See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
495+
for details.
496496
497497
The following fields cannot be set at all when creating a heap type:
498498
@@ -512,14 +512,13 @@ The following functions and structs are used to create
512512
To avoid issues, use the *bases* argument of
513513
:c:func:`PyType_FromSpecWithBases` instead.
514514
515-
.. versionchanged:: 3.9
515+
.. versionchanged:: 3.9
516+
Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
516517
517-
Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
518-
519-
.. versionchanged:: 3.11
520-
:c:member:`~PyBufferProcs.bf_getbuffer` and
521-
:c:member:`~PyBufferProcs.bf_releasebuffer` are now available
522-
under the :ref:`limited API <limited-c-api>`.
518+
.. versionchanged:: 3.11
519+
:c:member:`~PyBufferProcs.bf_getbuffer` and
520+
:c:member:`~PyBufferProcs.bf_releasebuffer` are now available
521+
under the :ref:`limited API <limited-c-api>`.
523522
524523
.. c:member:: void *pfunc
525524

0 commit comments

Comments
 (0)