Trying to analyze code that uses static type annotations (specifically PEP 526) crashes Pyan.
This is due to a bug in analyzer.py; an AnnAssign AST node has a format different from a regular Assign node, but CallGraphVisitor currently does not know this.
Issue reported by and minimal example courtesy of @AgenttiX.
Trying to analyze code that uses static type annotations (specifically PEP 526) crashes Pyan.
This is due to a bug in
analyzer.py
; anAnnAssign
AST node has a format different from a regularAssign
node, butCallGraphVisitor
currently does not know this.Issue reported by and minimal example courtesy of @AgenttiX.
pyan_err.zip