Skip to content

Commit b098884

Browse files
committed
Revert unneed code change.
We can just always call _PyType_CheckConsistency() since it handles types that are not yet ready.
1 parent 8037758 commit b098884

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Objects/typeobject.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9497,9 +9497,7 @@ type_ready(PyTypeObject *type, int initial, int add_subclasses)
94979497

94989498
stop_readying(type);
94999499

9500-
if (add_subclasses) {
9501-
assert(_PyType_CheckConsistency(type));
9502-
}
9500+
assert(_PyType_CheckConsistency(type));
95039501
return 0;
95049502

95059503
error:

0 commit comments

Comments
 (0)