From: Peter Bierma Date: Mon, 23 Feb 2026 15:24:29 +0000 (-0500) Subject: [3.14] gh-141004: Document `PyModuleDef_Type` (GH-145043) (GH-145146) X-Git-Tag: v3.14.4~254 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e29215e04a55e855046386349e38441fc9b246f;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-141004: Document `PyModuleDef_Type` (GH-145043) (GH-145146) (cherry picked from commit 24cc998c164f137603f1c6d95b929d640211d237) --- diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index eed47c8966c4..49ac4de6655a 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -277,6 +277,11 @@ data stored in module state. No longer called before the module state is allocated. +.. c:var:: PyTypeObject PyModuleDef_Type + + The type of ``PyModuleDef`` objects. + + Module slots ............ diff --git a/Tools/check-c-api-docs/ignored_c_api.txt b/Tools/check-c-api-docs/ignored_c_api.txt index 1351190b1f6b..eed3935a258c 100644 --- a/Tools/check-c-api-docs/ignored_c_api.txt +++ b/Tools/check-c-api-docs/ignored_c_api.txt @@ -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