Talk Python To Me

#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.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

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.
INSIGHT

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.
ADVICE

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.
Get the Snipd Podcast app to discover more snips from this episode
Get the app