{
  "id": 15786170,
  "title": "Google Replaces pytype With Pyrefly: Which Type Checker in 2026",
  "url": "https://urgent.news/2026/10/20/google-replaces-pytype-with-pyrefly-which-type-checker-in-2026",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-20T19:15:05.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/akaranjkar08/google-replaces-pytype-with-pyrefly-which-type-checker-in-2026-484o"
  },
  "original_language": "en",
  "account": "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.\n\nThe 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.\n\nGoogle'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.\n\nThe 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.",
  "summary": "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…",
  "key_points": [
    "Google replaces its Python type checker pytype with Meta's Pyrefly.",
    "Pyrefly is an order of magnitude faster than Pytype on internal benchmarks.",
    "Pyrefly provides improved diagnostics with inline annotations and fix suggestions."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}