Skip to content

Commit 29c0a66

Browse files
fix: resolve mypy type errors in collect_imports
1 parent 73e71d0 commit 29c0a66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeflash/languages/python/context/code_context_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def _parse_and_collect_imports(code_context: CodeStringsMarkdown) -> tuple[ast.M
556556

557557
# Directly iterate over the module body and nested structures instead of ast.walk
558558
# This avoids traversing every single node in the tree
559-
def collect_imports(nodes):
559+
def collect_imports(nodes: list[ast.stmt]) -> None:
560560
for node in nodes:
561561
if isinstance(node, ast.ImportFrom) and node.module:
562562
for alias in node.names:

0 commit comments

Comments
 (0)