[3.14] gh-141004: Document PyCapsule_Type (GH-141079) (GH-141199)

gh-141004: Document `PyCapsule_Type` (GH-141079)
(cherry picked from commit 7af9b5354dd7633df422b9f720633989b3090199)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-11-07 15:16:43 +01:00 committed by GitHub
parent 28493a5a62
commit 9f8ec95bb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,12 @@ Refer to :ref:`using-capsules` for more information on using these objects.
loaded modules.
.. c:var:: PyTypeObject PyCapsule_Type
The type object corresponding to capsule objects. This is the same object
as :class:`types.CapsuleType` in the Python layer.
.. c:type:: PyCapsule_Destructor
The type of a destructor callback for a capsule. Defined as::