Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pyrefly

> 开发工具
Open source

A fast type checker and language server for Python

6.8K stars0 likes1 views
WebsiteGitHub

About

A fast type checker and language server for Python

Pyrefly: A fast type checker and language server for Python with powerful IDE features

Pyrefly is a type checker and language server for Python, which provides lightning-fast type checking along with IDE features such as code navigation, semantic highlighting, and code completion. It is available as a command-line tool and an extension for popular IDEs and editors such as VSCode, Neovim, Zed, and more.

See the Pyrefly website for full documentation and how to add Pyrefly to your editor of choice.

Pyrefly's current development status is stable.

Key Features

  • Fast. Pyrefly checks over 1.85 million lines of code per second, type checking projects like PyTorch 15x faster than Mypy and Pyright. In the IDE, rechecks typically complete in under 10 milliseconds after saving a file.
  • Production-proven at scale. Pyrefly is the default type checker for Instagram's 20-million-line Python codebase at Meta, and has been adopted by large open source projects including PyTorch and JAX.
  • Full-featured language server. Code navigation, autocomplete, hover information, inlay hints, semantic highlighting, and more, with consistent results across the CLI and your editor of choice.
  • Understands real-world Python. Built-in support for frameworks and tools like Pydantic, Django, and pytest, with model validation, field types, fixture navigation, and autocomplete that work out of the box.
  • Adoption-ready. Migrate from Mypy or Pyright with pyrefly init, silence existing errors with pyrefly suppress, and generate type annotations with pyrefly infer. Start with one file and expand at your own pace.

Getting Started

  • Try out pyrefly in your browser: Sandbox
  • Get the command-line tool: pip install pyrefly
  • Get the IDE extension: IDE installation page

Version Policy

Pyrefly releases new minor versions (1.x.0) monthly and patch versions in between as-needed for critical fixes. Pyrefly does not follow strict semantic versioning: minor versions contain more significant changes than patch versions, but any version may introduce new type errors and other breaking changes. The pyrefly suppress command can be used to easily silence errors when upgrading to a new version.

Getting Involved

If you have questions or would like to report a bug, please create an issue.

See our contributing guide and architecture overview for information on how to contribute to Pyrefly.

Join our Discord to chat about Pyrefly and types. This is also where we hold biweekly office hours.

Issues· 701 open

View all issuesOpen on GitHub
  • #4987

    Inconsistent type inference in LSP and CLI for external search paths

    language-serverUpdated Sep 23, 2026
  • #5008

    Indentation rendering bug in tooltips

    language-serverUpdated Sep 23, 2026
  • #1336

    imports using symlinked paths are not updated

    language-serverUpdated Sep 22, 2026
  • #4129

    Shaped-array materialization can violate the unbounded-shape invariant

    typecheckingstaleneeds-triagetensor-shapesUpdated Sep 22, 2026
  • #4110

    type[Union[A, B, ...]] produces false bad-specialization error when passed to constrained TypeVar parameter

    typecheckingneeds-triageUpdated Sep 22, 2026
  • #3720

    detect unreachable `except` blocks

    typecheckingUpdated Sep 22, 2026
  • #5002

    Feature: `assert_type_unspellable_subtype`

    typecheckingUpdated Sep 22, 2026
  • #4713

    add helper for Module exists, but was not imported explicitly. You are relying on other modules to load it.

    language-serverUpdated Sep 21, 2026
  • #4986

    Missing hover on attribute assignment in __init__

    language-serverUpdated Sep 21, 2026
  • #4994

    False positive `unexpected-keyword` with Python 3.15 `frozendict` when called with keyword arguments

    typecheckingUpdated Sep 21, 2026

> Tags

Rustcode-qualityidelanguage-serverlanguage-server-protocol

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 23, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具