Skip to content

Pyrefly

Pyrefly is a fast type checker and language server for Python with powerful IDE features that analyzes Python code to catch type-related errors before runtime.

Freemium

Pyrefly in short

Pyrefly offers fast static type checking for large Python projects, but its alpha announcement in May 2025 means it's still unreleased.
stork
I am a flat drawing.
One flat drawing and one typed sentence.
This drawing was never animated.
A photo, a cartoon, a painting or a 3D character. From 10 cents a minute. Free to try.
Make a photo talkDevelopers: there is an API

What is Pyrefly?

Pyrefly is a static type checker and language server tool developed by Meta that enables Python developers to catch type-related errors before runtime. It provides powerful IDE features such as code navigation, autocomplete, and refactoring for reliable, maintainable Python code. Pyrefly functions as both a static type checker and a language server for Python, with its primary purpose being to analyze Python code for type consistency. Written in Rust, it aims to provide high-performance static analysis and rich IDE features to enhance developer productivity and code quality. The tool is open-source and has seen rapid development since its alpha announcement in May 2025.

Key Features of Pyrefly

Pyrefly integrates a high-performance type checker with a robust language server, offering a comprehensive suite of features designed to enhance Python development workflows.

  • Fast static type checking for Python codebases, even on large projects.
  • Language Server Protocol (LSP) implementation for broad IDE compatibility.
  • Advanced code navigation capabilities, including go-to-definition.
  • Semantic highlighting for improved code readability.
  • IntelliSense-style code completion for Python.
  • Hover documentation for quick access to function and variable information.
  • Real-time diagnostics, providing inline type error reporting.
  • Advanced refactoring capabilities, such as automatic import refactoring.
  • Support for Jupyter Notebook diagnostics and language features.
  • Bundled Typeshed third-party stubs and expanded library support (since v0.46.0).
  • Experimental Pydantic integration for static validation of Pydantic code (since December 2025).

Who Should Use Pyrefly?

Pyrefly is designed for Python developers and teams seeking to improve code quality, maintainability, and developer experience through advanced static analysis and IDE integration.

  • Python developers aiming to catch type-related errors early during development, preventing runtime bugs.
  • Teams collaborating on large-scale Python projects that require improved code quality, readability, and safer refactoring through comprehensive type annotations.
  • Developers working on massive production codebases, such as Instagram's 20 million lines of code, where performance and reliability are critical.
  • Users of popular IDEs and editors like VSCode, Neovim, and Zed who desire an enhanced developer experience with features like code navigation, autocomplete, and real-time diagnostics.
  • Organizations like PyTorch that require faster, more consistent type checking across core repositories and related projects to uncover and resolve bugs efficiently.

Pyrefly Pricing & Plans

Pyrefly operates on a freemium model, with its core type checker and language server functionality available as open-source software. There are no publicly detailed paid tiers or subscription plans for advanced features or enterprise support as of the latest information.

  • Free: Core Pyrefly type checker and language server functionality, available as open-source software.

Pyrefly vs Competitors

Pyrefly competes in the Python static analysis and developer tooling landscape, differentiating itself through its Rust-based performance and integrated language server capabilities.

Pyrefly

Freemium

From the Stork blog

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking