From ff7b5d44a00acfa681afd8aea70abc66ea536723 Mon Sep 17 00:00:00 2001 From: Ken Jin Date: Sat, 28 Jun 2025 18:30:30 +0800 Subject: [PATCH] gh-132732: Fix up pure types in JIT (GH-136050) Fix up pure types in JIT --- Python/optimizer_symbols.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/optimizer_symbols.c b/Python/optimizer_symbols.c index bd3ec615d08..8a3df236c80 100644 --- a/Python/optimizer_symbols.c +++ b/Python/optimizer_symbols.c @@ -212,7 +212,7 @@ _Py_uop_sym_is_safe_const(JitOptContext *ctx, JitOptRef sym) PyTypeObject *typ = Py_TYPE(const_val); return (typ == &PyUnicode_Type) || (typ == &PyFloat_Type) || - (typ == &PyTuple_Type) || + (typ == &_PyNone_Type) || (typ == &PyBool_Type); }