Skip to content

Commit 1ec2c50

Browse files
committed
Fixup: update handling for python 3.13 using ir.Global for format_simple
1 parent 72874af commit 1ec2c50

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/numba/openmp/omp_lower.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3166,7 +3166,11 @@ def infer_expr(self, expr, loc=None):
31663166
# Try to resolve the variable to see what function it points to
31673167
try:
31683168
func_defn = self._func_ir.get_definition(func.name)
3169-
if isinstance(func_defn, ir.Expr) and func_defn.op == "global":
3169+
# Handle ir.Global directly (Python 3.13+ for format_simple)
3170+
if isinstance(func_defn, ir.Global):
3171+
if func_defn.value is str:
3172+
func_name = "str"
3173+
elif isinstance(func_defn, ir.Expr) and func_defn.op == "global":
31703174
if func_defn.value is str:
31713175
func_name = "str"
31723176
elif (

0 commit comments

Comments
 (0)