Update pythonbpf/functions_pass.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Pragyansh Chaturvedi
2025-10-02 05:01:32 +05:30
committed by GitHub
parent 80c3519b95
commit 7bc711c296

View File

@ -674,7 +674,7 @@ def infer_return_type(func_node: ast.FunctionDef):
if found_type is None:
found_type = t
elif found_type != t:
raise ValueError(f"Conflicting return types:{found_type} vs {t}")
raise ValueError(f"Conflicting return types: {found_type} vs {t}")
return found_type or "None"