@@ -94,7 +94,7 @@ type objects) *must* have the :attr:`ob_size` field.
9494 This field is not inherited by subtypes.
9595
9696
97- .. c :member :: char * PyTypeObject.tp_name
97+ .. c :member :: const char * PyTypeObject.tp_name
9898
9999 Pointer to a NUL-terminated string containing the name of the type. For types
100100 that are accessible as module globals, the string should be the full module
@@ -372,7 +372,7 @@ type objects) *must* have the :attr:`ob_size` field.
372372 inherited individually.
373373
374374
375- .. c :member :: long PyTypeObject.tp_flags
375+ .. c :member :: unsigned long PyTypeObject.tp_flags
376376
377377 This field is a bit mask of various flags. Some flags indicate variant
378378 semantics for certain situations; others are used to indicate that certain
@@ -472,7 +472,7 @@ type objects) *must* have the :attr:`ob_size` field.
472472 .. versionadded :: 3.4
473473
474474
475- .. c :member :: char * PyTypeObject.tp_doc
475+ .. c :member :: const char * PyTypeObject.tp_doc
476476
477477 An optional pointer to a NUL-terminated C string giving the docstring for this
478478 type object. This is exposed as the :attr: `__doc__ ` attribute on the type and
@@ -619,7 +619,7 @@ type objects) *must* have the :attr:`ob_size` field.
619619 +----------------+------------+
620620
621621
622- .. c :member :: long PyTypeObject.tp_weaklistoffset
622+ .. c :member :: Py_ssize_t PyTypeObject.tp_weaklistoffset
623623
624624 If the instances of this type are weakly referenceable, this field is greater
625625 than zero and contains the offset in the instance structure of the weak
@@ -786,7 +786,7 @@ type objects) *must* have the :attr:`ob_size` field.
786786 .. XXX explain.
787787
788788
789- .. c :member :: long PyTypeObject.tp_dictoffset
789+ .. c :member :: Py_ssize_t PyTypeObject.tp_dictoffset
790790
791791 If the instances of this type have a dictionary containing instance variables,
792792 this field is non-zero and contains the offset in the instances of the type of
0 commit comments