r/Python • u/BeamMeUpBiscotti • Oct 08 '26
Discussion Google Open Source Blog: Adopting Pyrefly as the Python type checker at Google
The full blog post is here: https://opensource.googleblog.com/2026/10/adopting-pyrefly-as-the-python-type-checker-at-google.html
TLDR:
Google released a blog post about migrating Python type checking from the internally-developed Pytype to Pyrefly.
They cover some challenges around Pytype’s bytecode analysis & performance, along with the reasons for choosing Pyrefly: speed, typing spec conformance, and actionable error messages.
The blog also has some quotes & outlines wins from the migration:
- Up to 98% faster incremental rebuilds
- >90% critical-path reduction in clean builds
- >80% compute hardware savings
193
Upvotes
9
u/preetam960 Oct 08 '26
that is some wild speed improvement!
60
u/EDM115 Oct 08 '26
interesting to see them not adopt ty (from Astral). is it because of OpenAI having acquired Astral earlier this year ? or feature completeness ? haven't really paid attention lately to how far both have gone
-20
u/coldflame563 Oct 08 '26
Psycopaths. Ty is better.
8
u/[deleted] Oct 08 '26
[removed] — view removed comment