]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Doc: C API: Demote sections to subsections for consistency (GH-126535) (#126546)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Nov 2024 15:35:41 +0000 (16:35 +0100)
committerGitHub <noreply@github.com>
Thu, 7 Nov 2024 15:35:41 +0000 (15:35 +0000)
Doc: C API: Demote sections to subsections for consistency (GH-126535)

The entire file should be a single section; the headings below the
first heading should be subsections.
(cherry picked from commit e3510bd3dd9ea8f2a30cb1128470aee3a48d8880)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
Doc/c-api/typeobj.rst

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