From 692aeaa67acf30030c935944d82a31fc96f215ee Mon Sep 17 00:00:00 2001 From: Peter Bierma Date: Mon, 23 Feb 2026 09:18:45 -0500 Subject: [PATCH] [3.14] gh-141004: Document `PyModuleDef_Type` (GH-145043) (cherry picked from commit 24cc998c164f137603f1c6d95b929d640211d237) Co-authored-by: Peter Bierma --- Doc/c-api/module.rst | 5 +++++ Tools/check-c-api-docs/ignored_c_api.txt | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index eed47c8966c473..49ac4de6655a88 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 1351190b1f6b32..eed3935a258c4f 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