Doc: add the missing ".tp_flags" in type definition (GH-12902)
(cherry picked from commit 662ebd2ab2
)
Co-authored-by: Wu Wei <weiwu@cacheme.net>
This commit is contained in:
parent
15a57a3cad
commit
8c49d71385
|
@ -92,6 +92,7 @@ The second bit is the definition of the type object. ::
|
||||||
.tp_doc = "Custom objects",
|
.tp_doc = "Custom objects",
|
||||||
.tp_basicsize = sizeof(CustomObject),
|
.tp_basicsize = sizeof(CustomObject),
|
||||||
.tp_itemsize = 0,
|
.tp_itemsize = 0,
|
||||||
|
.tp_flags = Py_TPFLAGS_DEFAULT,
|
||||||
.tp_new = PyType_GenericNew,
|
.tp_new = PyType_GenericNew,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue