Fix local_sym_tab usage in binary_ops

This commit is contained in:
Pragyansh Chaturvedi
2025-10-02 04:58:39 +05:30
parent 71b97e3e20
commit 0c1acf1420
2 changed files with 14 additions and 14 deletions

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"