Typify: A Tool for Usage-driven Type Inference in Python
THE QUICK READ
The authors present Typify, a lightweight static type inference engine for Python that requires neither existing annotations nor training data. It combines symbolic execution, fixpoint analysis and context-matching retrieval to propagate types across modules, functions and recursive calls, and ships as a command-line interface plus a VS Code extension. The authors report that it outperforms static baselines and runs about 10x faster than hybrid deep learning approaches.
KEY POINTS
- Combines symbolic execution, fixpoint analysis and context-matching retrieval for cross-module type propagation.
- Offered as a CLI for batch inference and integration, and as a VS Code extension for interactive assistance.
- Authors claim it beats static baselines on ManyTypes4Py and Typilus and runs roughly 10x faster.
READING LIMITS
Based only on the title and abstract; the full paper was not read, so experimental setup, baseline fairness and reported numbers could not be verified.
Source abstract [EN]
Python's dynamic type system, while expressive and flexible, creates significant challenges for static analysis tools in unannotated or partially annotated codebases. Existing approaches either require pre-existing type annotations, or depend on deep learning models that demand large training corpora and significant computational resources. We present Typify, a lightweight, usage-driven static type inference engine that infers precise type information across entire Python projects without annotations or training data. Typify integrates symbolic execution, fixpoint analysis, and context-matching retrieval to propagate types across modules, functions, and recursive call structures. The tool is available as both a command-line interface (CLI) for batch inference, evaluation and downstream integration with other tools, and a Visual Studio Code (VS Code) extension for interactive type assistance. Evaluation on the ManyTypes4Py and Typilus datasets shows that Typify outperforms all static baselines and closely matches state-of-the-art hybrid deep learning approaches, while running approximately 10x faster.
AI summaries use public titles and abstracts only. Research claims belong to the authors; consult the original paper.