We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73e71d0 commit 29c0a66Copy full SHA for 29c0a66
1 file changed
codeflash/languages/python/context/code_context_extractor.py
@@ -556,7 +556,7 @@ def _parse_and_collect_imports(code_context: CodeStringsMarkdown) -> tuple[ast.M
556
557
# Directly iterate over the module body and nested structures instead of ast.walk
558
# This avoids traversing every single node in the tree
559
- def collect_imports(nodes):
+ def collect_imports(nodes: list[ast.stmt]) -> None:
560
for node in nodes:
561
if isinstance(node, ast.ImportFrom) and node.module:
562
for alias in node.names:
0 commit comments