From d4e8e1bf7301a46af3c0a5b03cd965878000799c Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Thu, 2 Oct 2025 00:14:51 +0530 Subject: [PATCH] Fix unterminated fstrings --- pythonbpf/functions_pass.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pythonbpf/functions_pass.py b/pythonbpf/functions_pass.py index f4a071c..3e0fbf4 100644 --- a/pythonbpf/functions_pass.py +++ b/pythonbpf/functions_pass.py @@ -469,8 +469,8 @@ def allocate_mem( var = builder.alloca(ir_type, name=var_name) local_var_metadata[var_name] = call_type print( - f"Pre-allocated variable { - var_name} for struct {call_type}" + f"Pre-allocated variable {var_name} " + f"for struct {call_type}" ) elif isinstance(rval.func, ast.Attribute): ir_type = ir.PointerType(ir.IntType(64)) @@ -671,8 +671,8 @@ def infer_return_type(func_node: ast.FunctionDef): if found_type is None: found_type = t elif found_type != t: - raise ValueError("Conflicting return types:" f"{ - found_type} vs {t}") + raise ValueError("Conflicting return types:" + f"{found_type} vs {t}") return found_type or "None"