Skip to content

Commit ff7b5d4

Browse files
gh-132732: Fix up pure types in JIT (GH-136050)
Fix up pure types in JIT
1 parent 35ecaf9 commit ff7b5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/optimizer_symbols.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ _Py_uop_sym_is_safe_const(JitOptContext *ctx, JitOptRef sym)
212212
PyTypeObject *typ = Py_TYPE(const_val);
213213
return (typ == &PyUnicode_Type) ||
214214
(typ == &PyFloat_Type) ||
215-
(typ == &PyTuple_Type) ||
215+
(typ == &_PyNone_Type) ||
216216
(typ == &PyBool_Type);
217217
}
218218

0 commit comments

Comments
 (0)