Expand description
Python language adapter for AgentStateDeveloper.
Implements LanguageAdapter
on top of tree-sitter-python. Parses module-level functions, methods,
and classes, and runs a small substring-based effect inference pass.
Structs§
- Python
Adapter - Python language adapter.
Functions§
- report_
unresolved_ calls_ in_ python - Plan L t-006: walk a Python file’s call nodes and report any that the static resolver couldn’t bind to a workspace qname. Includes stdlib + third-party + dynamic — callers should treat the count as “static-resolution gap,” not “bug list.”
- scan_
dynamic_ dispatch_ in_ python - Plan L t-005: scan Python source for call patterns the static call-graph walker can’t resolve. Returns one hint per detected site so the indexer can surface a warning. The patterns we flag are deliberately conservative — only the ones that are unambiguously dynamic dispatch: