pyan
pyan copied to clipboard
Enh: static type annotations
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.
Requires Python 3.6, waiting to upgrade to be able to debug this.
Not closed yet - need testing.