summaryrefslogtreecommitdiffstats
path: root/Objects/typeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r--Objects/typeobject.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 5ebff60..8510196 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -6650,6 +6650,14 @@ PyType_Ready(PyTypeObject *type)
return 0;
}
+int
+_PyStaticType_InitBuiltin(PyTypeObject *self)
+{
+ self->tp_flags = self->tp_flags | _Py_TPFLAGS_STATIC_BUILTIN;
+
+ return PyType_Ready(self);
+}
+
static int
add_subclass(PyTypeObject *base, PyTypeObject *type)