Skip to content

Commit 4000cbd

Browse files
authored
[3.12] Docs: Fix incorrect indents in c-api/type.rst (pythonGH-127449) (python#127461)
(cherry picked from commit 33ce8dc)
1 parent f08c82e commit 4000cbd

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

Doc/c-api/type.rst

+19-20
Original file line numberDiff line numberDiff line change
@@ -465,19 +465,19 @@ The following functions and structs are used to create
465465
466466
The following “offset” fields cannot be set using :c:type:`PyType_Slot`:
467467
468-
* :c:member:`~PyTypeObject.tp_weaklistoffset`
469-
(use :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)
470-
* :c:member:`~PyTypeObject.tp_dictoffset`
471-
(use :c:macro:`Py_TPFLAGS_MANAGED_DICT` instead if possible)
472-
* :c:member:`~PyTypeObject.tp_vectorcall_offset`
473-
(use ``"__vectorcalloffset__"`` in
474-
:ref:`PyMemberDef <pymemberdef-offsets>`)
475-
476-
If it is not possible to switch to a ``MANAGED`` flag (for example,
477-
for vectorcall or to support Python older than 3.12), specify the
478-
offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
479-
See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
480-
for details.
468+
* :c:member:`~PyTypeObject.tp_weaklistoffset`
469+
(use :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)
470+
* :c:member:`~PyTypeObject.tp_dictoffset`
471+
(use :c:macro:`Py_TPFLAGS_MANAGED_DICT` instead if possible)
472+
* :c:member:`~PyTypeObject.tp_vectorcall_offset`
473+
(use ``"__vectorcalloffset__"`` in
474+
:ref:`PyMemberDef <pymemberdef-offsets>`)
475+
476+
If it is not possible to switch to a ``MANAGED`` flag (for example,
477+
for vectorcall or to support Python older than 3.12), specify the
478+
offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
479+
See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
480+
for details.
481481
482482
The following fields cannot be set at all when creating a heap type:
483483
@@ -497,14 +497,13 @@ The following functions and structs are used to create
497497
To avoid issues, use the *bases* argument of
498498
:c:func:`PyType_FromSpecWithBases` instead.
499499
500-
.. versionchanged:: 3.9
500+
.. versionchanged:: 3.9
501+
Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
501502
502-
Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
503-
504-
.. versionchanged:: 3.11
505-
:c:member:`~PyBufferProcs.bf_getbuffer` and
506-
:c:member:`~PyBufferProcs.bf_releasebuffer` are now available
507-
under the :ref:`limited API <limited-c-api>`.
503+
.. versionchanged:: 3.11
504+
:c:member:`~PyBufferProcs.bf_getbuffer` and
505+
:c:member:`~PyBufferProcs.bf_releasebuffer` are now available
506+
under the :ref:`limited API <limited-c-api>`.
508507
509508
.. c:member:: void *pfunc
510509

0 commit comments

Comments
 (0)