Skip to content

Commit 707310a

Browse files
Call _PyType_CheckConsistency() after setting the fields.
1 parent 37486b4 commit 707310a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7186,12 +7186,12 @@ _PyStaticType_InitBuiltin(PyTypeObject *self)
71867186

71877187
if (self->tp_flags & Py_TPFLAGS_READY) {
71887188
assert(self->tp_flags & _Py_TPFLAGS_STATIC_BUILTIN);
7189-
assert(_PyType_CheckConsistency(self));
71907189
/* We must explicitly set these for subinterpreters.
71917190
tp_subclasses is set lazily. */
71927191
type_ready_set_dict(self);
71937192
type_ready_set_bases(self);
71947193
type_ready_mro(self);
7194+
assert(_PyType_CheckConsistency(self));
71957195
return 0;
71967196
}
71977197

0 commit comments

Comments
 (0)