From cf5faaad7fc10d8abbcd17eaeafc7105409ebb84 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Thu, 2 Oct 2025 01:27:03 +0530 Subject: [PATCH] remove pointless type annotation Signed-off-by: varun-r-mallya --- pythonbpf/functions_pass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonbpf/functions_pass.py b/pythonbpf/functions_pass.py index e1a5b1c..aaebff0 100644 --- a/pythonbpf/functions_pass.py +++ b/pythonbpf/functions_pass.py @@ -608,7 +608,7 @@ def func_proc(tree, module, chunks, map_sym_tab, structs_sym_tab): ) -def infer_return_type(func_node: ast.FunctionDef) -> str | None | Any: +def infer_return_type(func_node: ast.FunctionDef): if not isinstance(func_node, (ast.FunctionDef, ast.AsyncFunctionDef)): raise TypeError("Expected ast.FunctionDef") if func_node.returns is not None: