diff --git a/Objects/typeobject.c b/Objects/typeobject.c index b9d549610693c1..2090db49e5ed2c 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -10767,6 +10767,8 @@ slot_tp_finalize(PyObject *self) } } + PyType_Modified(Py_TYPE(self)); + _PyThreadState_PopCStackRef(tstate, &cref); /* Restore the saved exception. */