]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141004: Document `PyModuleDef_Type` (GH-145043)
authorPeter Bierma <zintensitydev@gmail.com>
Mon, 23 Feb 2026 14:18:45 +0000 (09:18 -0500)
committerGitHub <noreply@github.com>
Mon, 23 Feb 2026 14:18:45 +0000 (15:18 +0100)
Doc/c-api/module.rst
Tools/check-c-api-docs/ignored_c_api.txt

index aa2145b5fe5d0982cc58bb979bd5a35f8bbb1744..39293b0fa228dfbfae1d7063818f25b34c69feb2 100644 (file)
@@ -755,6 +755,11 @@ remove it.
          functions are no longer called before the module state is allocated.
 
 
+.. c:var:: PyTypeObject PyModuleDef_Type
+
+   The type of ``PyModuleDef`` objects.
+
+
 .. _moduledef-dynamic:
 
 The following API can be used to create modules from a :c:type:`!PyModuleDef`
index e628bdfebcbdeda71dca878332095f25cb2e4fbe..7bf79872bd463038ac218e735b4d0587ab1825bf 100644 (file)
@@ -20,8 +20,6 @@ Py_UTF8Mode
 Py_HASH_EXTERNAL
 # modsupport.h
 PyABIInfo_FREETHREADING_AGNOSTIC
-# moduleobject.h
-PyModuleDef_Type
 # object.h
 Py_INVALID_SIZE
 Py_TPFLAGS_HAVE_VERSION_TAG