Skip to content

Commit 16ec67d

Browse files
Fidget-Spinnertaegyunkim
authored andcommitted
pythongh-132732: Fix up pure types in JIT (pythonGH-136050)
Fix up pure types in JIT
1 parent 40a75c6 commit 16ec67d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)