mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Fix unterminated fstrings
This commit is contained in:
@ -469,8 +469,8 @@ def allocate_mem(
|
|||||||
var = builder.alloca(ir_type, name=var_name)
|
var = builder.alloca(ir_type, name=var_name)
|
||||||
local_var_metadata[var_name] = call_type
|
local_var_metadata[var_name] = call_type
|
||||||
print(
|
print(
|
||||||
f"Pre-allocated variable {
|
f"Pre-allocated variable {var_name} "
|
||||||
var_name} for struct {call_type}"
|
f"for struct {call_type}"
|
||||||
)
|
)
|
||||||
elif isinstance(rval.func, ast.Attribute):
|
elif isinstance(rval.func, ast.Attribute):
|
||||||
ir_type = ir.PointerType(ir.IntType(64))
|
ir_type = ir.PointerType(ir.IntType(64))
|
||||||
@ -671,8 +671,8 @@ def infer_return_type(func_node: ast.FunctionDef):
|
|||||||
if found_type is None:
|
if found_type is None:
|
||||||
found_type = t
|
found_type = t
|
||||||
elif found_type != t:
|
elif found_type != t:
|
||||||
raise ValueError("Conflicting return types:" f"{
|
raise ValueError("Conflicting return types:"
|
||||||
found_type} vs {t}")
|
f"{found_type} vs {t}")
|
||||||
return found_type or "None"
|
return found_type or "None"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user