Issue #15146: Add PyType_FromSpecWithBases. Patch by Robin Schreiber.
diff --git a/Include/object.h b/Include/object.h
index 68001e7..709a9ff 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -433,6 +433,9 @@
} PyType_Spec;
PyAPI_FUNC(PyObject*) PyType_FromSpec(PyType_Spec*);
+#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
+PyAPI_FUNC(PyObject*) PyType_FromSpecWithBases(PyType_Spec*, PyObject*);
+#endif
#ifndef Py_LIMITED_API
/* The *real* layout of a type object when allocated on the heap */