Increasing Types in Large Codebases with Pyrefly and AI Tooling
summary
Meta rebuilds its Python type checker as Pyrefly in Rust and claims it type checks at 1.85 million lines/second, running 35x faster on Instagram than the old tool. It ships an LSP for IDE keystroke feedback, an infer command that inserts annotations, a suppress-errors generator plus unused-ignore remover, and a summary command that breaks down files and error counts. The team reports successful internal rollouts and ongoing beta development.
AI-written summary · about
chapters (13)
- 0:00Introduction and background
- 1:15Why use type checkers
- 3:20Py and Pyfly evolution
- 5:47Building Pyfly from scratch
- 7:11Pyfly performance and benefits
- 9:17First run errors and fixes
- 11:47Configuring Pyfly properly
- 13:53Automating type inference
- 14:57Incremental typing strategy
- 15:41Team adoption and AI tooling
- 17:49Production readiness Q&A
- 21:18Plugins and integrations Q&A
- 22:49Final Q&A and closing
