摘要
In this experience paper, we design, implement, and evaluate a new static type-error detection tool for Python. To build a practical tool, we first collected and analyzed 68 real-world type errors gathered from 20 open-source projects. This empirical investigation revealed four key static-analysis features that are crucial for the effective detection of Python type errors in practice. Utilizing these insights, we present a tool called Pyinder, which can successfully detect 34 out of the 68 bugs, compared to existing type analysis tools that collectively detect only 16 bugs. We also discuss the remaining 34 bugs that Pyinder failed to detect, offering insights into future directions for Python type analysis tools. Lastly, we show that Pyinder can uncover previously unknown bugs in recent Python projects.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- TypeCare: Boosting Python Type Inference Models via Context-Aware Re-Ranking and Augmentation 引用了 Typilus: neural type hints
- TypeCare: Boosting Python Type Inference Models via Context-Aware Re-Ranking and Augmentation 引用了 LambdaNet: Probabilistic Type Inference using Graph Neural Networks
- TypeCare: Boosting Python Type Inference Models via Context-Aware Re-Ranking and Augmentation 引用了 Type4Py: Practical Deep Similarity Learning-Based Type Inference for Python
- TypeCare: Boosting Python Type Inference Models via Context-Aware Re-Ranking and Augmentation 引用了 Static Inference Meets Deep learning: A Hybrid Type Inference Approach for Python
- TypeCare: Boosting Python Type Inference Models via Context-Aware Re-Ranking and Augmentation 引用了 TypeWriter: neural type prediction with search-based validation
- Type4Py: Practical Deep Similarity Learning-Based Type Inference for Python 引用了 Typilus: neural type hints
- Type4Py: Practical Deep Similarity Learning-Based Type Inference for Python 引用了 LambdaNet: Probabilistic Type Inference using Graph Neural Networks
- Type4Py: Practical Deep Similarity Learning-Based Type Inference for Python 引用了 TypeWriter: neural type prediction with search-based validation
- Static Inference Meets Deep learning: A Hybrid Type Inference Approach for Python 引用了 Typilus: neural type hints
- Static Inference Meets Deep learning: A Hybrid Type Inference Approach for Python 引用了 LambdaNet: Probabilistic Type Inference using Graph Neural Networks
- Static Inference Meets Deep learning: A Hybrid Type Inference Approach for Python 引用了 TypeWriter: neural type prediction with search-based validation
引用它的顶会 Paper3
- Reflective Unit Test Generation for Precise Type Error Detection with Large Language ModelsChen Yang, Ziqi Wang, Yanjie Jiang, Lin Yang 等ASE 2025 · 1 次引用
- TypeCare: Boosting Python Type Inference Models via Context-Aware Re-Ranking and AugmentationWonseok Oh, Hakjoo OhICSE 2026
- Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub ScenariosZhi Chen, Wei Ma, Lingxiao JiangICSE 2026
它引用的 Paper12
- LambdaNet: Probabilistic Type Inference using Graph Neural NetworksJiayi Wei, Maruth Goyal, Greg Durrett, Isil DilligICLR 2020 · 119 次引用
- TypeWriter: neural type prediction with search-based validationMichael Pradel, Georgios Gousios, Jason Liu, Satish ChandraFSE 2020 · 102 次引用
- Typilus: neural type hintsMiltiadis Allamanis, Earl T. Barr, Soline Ducousso, Zheng GaoPLDI 2020 · 92 次引用
- Type4Py: Practical Deep Similarity Learning-Based Type Inference for PythonAmir M. Mir, Evaldas Latoskinas, Sebastian Proksch, Georgios GousiosICSE 2022 · 59 次引用
- Static Inference Meets Deep learning: A Hybrid Type Inference Approach for PythonYun Peng, Cuiyun Gao, Zongjie Li, Bowei Gao 等ICSE 2022 · 48 次引用
相关 Paper
- PyTER: effective program repair for Python type errorsWonseok Oh, Hakjoo OhFSE 2022 · 22 次引用
- The evolution of type annotations in python: an empirical studyLuca Di Grazia, Michael PradelFSE 2022 · 29 次引用
- Fixing dependency errors for Python build reproducibilitySuchita Mukherjee, Abigail Almanza, Cindy Rubio-GonzálezISSTA 2021 · 55 次引用
- The Power of Types: Exploring the Impact of Type Checking on Neural Bug Detection in Dynamically Typed LanguagesBoqi Chen, José Antonio Hernández López, Gunter Mussbacher, Dániel VarróICSE 2025
- Taming type annotations in gradual typingJohn Peter Campora III, Sheng ChenOOPSLA 2020 · 7 次引用
