Skip to content

Commit 95a6240

Browse files
fix type error
1 parent c5bef26 commit 95a6240

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pythonbpf/vmlinux_parser/import_detector.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
logger = logging.getLogger(__name__)
1212

1313

14-
def detect_import_statement(tree: ast.AST) -> list[tuple[str, ast.ImportFrom]]:
14+
def detect_import_statement(
15+
tree: ast.AST,
16+
) -> list[tuple[str, ast.ImportFrom, str, str]]:
1517
"""
1618
Parse AST and detect import statements from vmlinux.
1719
@@ -64,6 +66,7 @@ def detect_import_statement(tree: ast.AST) -> list[tuple[str, ast.ImportFrom]]:
6466
)
6567

6668
logger.info(f"Total vmlinux imports detected: {len(vmlinux_imports)}")
69+
# print(f"\n**************\n{vmlinux_imports}\n**************\n")
6770
return vmlinux_imports
6871

6972

0 commit comments

Comments
 (0)