Skip to content

Commit 4a4109e

Browse files
Be slightly less strict in PyType_Ready().
1 parent 143f936 commit 4a4109e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7014,12 +7014,11 @@ type_ready(PyTypeObject *type)
70147014
int
70157015
PyType_Ready(PyTypeObject *type)
70167016
{
7017-
assert(!(type->tp_flags & _Py_TPFLAGS_STATIC_BUILTIN));
7018-
70197017
if (type->tp_flags & Py_TPFLAGS_READY) {
70207018
assert(_PyType_CheckConsistency(type));
70217019
return 0;
70227020
}
7021+
assert(!(type->tp_flags & _Py_TPFLAGS_STATIC_BUILTIN));
70237022

70247023
/* Historically, all static types were immutable. See bpo-43908 */
70257024
if (!(type->tp_flags & Py_TPFLAGS_HEAPTYPE)) {

0 commit comments

Comments
 (0)