

#506: ty: Astral's New Type Checker (Formerly Red-Knot)
92 snips May 19, 2025
Charlie Marsh, the founder of Astral, and Carl Meyer, a Python community member and Astral employee, delve into their exciting new type checker, TY. Formerly known as Red-Knot, TY aims to revolutionize type checking in Python with superior usability and performance. They discuss the importance of type annotations for better code clarity and reveal how TY addresses common developer challenges. Additionally, they emphasize ongoing innovations in Python tooling and the need for standardization in the Python type system.
AI Snips
Chapters
Transcript
Episode notes
Types Boost Editor Productivity
- Types improve editor auto-completion and real-time diagnostics, helping productivity.
- Even without running type checkers, adding types enhances the editor experience, aiding code writing and scaling.
Performance and Integration Prioritized
- Performance is critical for large Python projects to run type checkers efficiently.
- Integrating type info with linting can improve code analysis quality significantly.
Smooth Typing Adoption
- Use type checkers that avoid false positives on untyped but correct code bases.
- Gradually add annotations to get accurate error reporting without rewriting code initially.