Doc: C API: Demote sections to subsections for consistency (#126535)

The entire file should be a single section; the headings below the
first heading should be subsections.
This commit is contained in:
Richard Hansen 2024-11-07 10:29:31 -05:00 committed by GitHub
parent 85036c8d61
commit e3510bd3dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 7 deletions

View File

@ -2230,7 +2230,7 @@ This is done by filling a :c:type:`PyType_Spec` structure and calling
.. _number-structs: .. _number-structs:
Number Object Structures Number Object Structures
======================== ------------------------
.. sectionauthor:: Amaury Forgeot d'Arc .. sectionauthor:: Amaury Forgeot d'Arc
@ -2344,7 +2344,7 @@ Number Object Structures
.. _mapping-structs: .. _mapping-structs:
Mapping Object Structures Mapping Object Structures
========================= -------------------------
.. sectionauthor:: Amaury Forgeot d'Arc .. sectionauthor:: Amaury Forgeot d'Arc
@ -2381,7 +2381,7 @@ Mapping Object Structures
.. _sequence-structs: .. _sequence-structs:
Sequence Object Structures Sequence Object Structures
========================== --------------------------
.. sectionauthor:: Amaury Forgeot d'Arc .. sectionauthor:: Amaury Forgeot d'Arc
@ -2461,7 +2461,7 @@ Sequence Object Structures
.. _buffer-structs: .. _buffer-structs:
Buffer Object Structures Buffer Object Structures
======================== ------------------------
.. sectionauthor:: Greg J. Stein <greg@lyra.org> .. sectionauthor:: Greg J. Stein <greg@lyra.org>
.. sectionauthor:: Benjamin Peterson .. sectionauthor:: Benjamin Peterson
@ -2556,7 +2556,7 @@ Buffer Object Structures
Async Object Structures Async Object Structures
======================= -----------------------
.. sectionauthor:: Yury Selivanov <yselivanov@sprymix.com> .. sectionauthor:: Yury Selivanov <yselivanov@sprymix.com>
@ -2624,7 +2624,7 @@ Async Object Structures
.. _slot-typedefs: .. _slot-typedefs:
Slot Type typedefs Slot Type typedefs
================== ------------------
.. c:type:: PyObject *(*allocfunc)(PyTypeObject *cls, Py_ssize_t nitems) .. c:type:: PyObject *(*allocfunc)(PyTypeObject *cls, Py_ssize_t nitems)
@ -2733,7 +2733,7 @@ Slot Type typedefs
.. _typedef-examples: .. _typedef-examples:
Examples Examples
======== --------
The following are simple examples of Python type definitions. They The following are simple examples of Python type definitions. They
include common usage you may encounter. Some demonstrate tricky corner include common usage you may encounter. Some demonstrate tricky corner