diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 13c9e2e4b395abd..97fe9085ba08e02 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -5415,7 +5415,8 @@ dict_vectorcall(PyObject *type, PyObject * const*args, return NULL; } - PyObject *self = dict_new(_PyType_CAST(type), NULL, NULL); + assert(type == (PyObject *)&PyDict_Type); + PyObject *self = PyDict_New(); if (self == NULL) { return NULL; }