Skip to content

Commit bde1733

Browse files
loopx-agenthuangruiteng
authored andcommitted
fix(semantics): retain parsed module result type
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
1 parent 323461c commit bde1733

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎loopx/semantics/inventory.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _assigned_name(node: ast.AST) -> tuple[str, ast.AST] | None:
116116
return None
117117

118118

119-
def parse_python(source: SourceFile) -> ast.AST:
119+
def parse_python(source: SourceFile) -> ast.Module:
120120
"""Parse one tracked Python source, rejecting an unparseable one by path.
121121
122122
Deliberately not cached. Caching the trees would hold roughly two million

0 commit comments

Comments
 (0)