Urgent.News

What's breaking now, across thousands of outlets.

Tech

Google Replaces pytype With Pyrefly: Which Type Checker in 2026

Google has made Pyrefly, Meta's Rust-based Python type checker, its type checker across the company and is dropping pytype, and if your CI still runs pytype you are on a tool whose own README says Python 3.12 is the last supported version. Google's announcement dated 6 October 2026 reports Pyrefly as "an order of magnitude faster than Pytype" on its internal benchmarks and scoring roughly 97% on…

Google has announced it will replace its in-house Python type checker, pytype, with Meta's Rust-based type checker Pyrefly. The change was announced on October 6, 2026. Pyrefly is reportedly an order of magnitude faster than Pytype on internal benchmarks from Google, and scores 97% on the official typing conformance suite.

The announcement marks the end of support for pytype, as its README now states that Python 3.12 is the last supported version. Pyrefly is positioned as a drop-in replacement for pytype and mypy users looking for speed, with a tool called pyrefly init to convert mypy or Pyright configs. Ty, from Astral, is also fast, but it is in beta with no stable API, so it is recommended as something to trial rather than gate releases on.

Google's switch to Pyrefly is driven by three main factors: speed, conformance to new Python versions and typing PEPs, and improved diagnostics. Pyrefly's errors point directly at the offending code with inline annotations and sometimes suggest a fix. For example, Pyrefly would reject a function that takes an int but is called with an int | None, suggesting a narrowing check with an is not None.

The migration path suggests installing Pyrefly, running pyrefly init to convert existing config files, checking locally, suppressing errors, adding Pyrefly to CI beside the old checker, and then removing the old type checker. The announcement does not provide a deadline for the switch, but it recommends planning the migration now, especially when planning to upgrade to Python 3.13 or later, as pytype will no longer work on those versions.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

.NET 11 RC2: What Is New and Whether to Upgrade From 8 or 10

.NET 11 RC2, published on 13 October 2026, is the final release candidate and ships with a go-live license, but the practical advice is split by where you start: .NET 8 teams must move before 10…

  • .NET 11 RC2 released on 13 October 2026
  • RC2 includes data formatting, incremental CBOR reading, and experimental ML-KEM/HPKE APIs
  • Upgrade from .NET 8 to 10 required by 10 November 2026, from 10 to 2028

More from Tuesday 20 October →