Skip to content

Commit 2a852a2

Browse files
miss-islingtoneduardo-elizondo
authored andcommitted
bpo-16086: Fix PyType_GetFlags() documentation (GH-10758) (GH-10790)
PyType_GetFlags() return type is unsigned long, not long. (cherry picked from commit 9fbcfc0) Co-authored-by: Eddie Elizondo <[email protected]>
1 parent 833a706 commit 2a852a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/c-api/type.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Type Objects
3535
3636
Clear the internal lookup cache. Return the current version tag.
3737
38-
.. c:function:: long PyType_GetFlags(PyTypeObject* type)
38+
.. c:function:: unsigned long PyType_GetFlags(PyTypeObject* type)
3939
4040
Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This function is primarily
4141
meant for use with `Py_LIMITED_API`; the individual flag bits are
@@ -44,6 +44,9 @@ Type Objects
4444
4545
.. versionadded:: 3.2
4646
47+
.. versionchanged:: 3.4
48+
The return type is now ``unsigned long`` rather than ``long``.
49+
4750
4851
.. c:function:: void PyType_Modified(PyTypeObject *type)
4952

0 commit comments

Comments
 (0)