[KongchangAI]
ProductPyre2

Pyrefly

An open-source Python static type checker developed by Meta, implemented in Rust. It provides high performance and cross-environment consistency, allowing the same engine to be used for type checking in editors, terminals, and CI pipelines.

Timeline (last 90 days)

Oct 21

Zed added Pyrefly to the built-in list as an optional Python language server, which users can enable in Python's language_servers setting (PR #44262).

Unverified50%
Oct 21

Pyrefly aims to provide type checking an order of magnitude faster than mypy and Pyright, and to support full type inference, generics, and the new PEP 695 syntax.

Unverified50%
Oct 21

Pyrefly's type checking rules are not entirely consistent with Pyright's, so migrating a project may require handling newly appearing diagnostics.

Unverified50%
Oct 4

Pyrefly can be installed via uv add pyrefly or pip install pyrefly, and an entire project can be scanned by running uv run pyrefly check.

Unverified50%
Oct 4

If no configuration file is present in a project, Pyrefly runs in basic mode and only checks for the most severe type issues; a configuration file must be added for more aggressive checks.

Unverified50%
Oct 4

Pyrefly is a Python static type checker created by Meta by rewriting its former OCaml-based type checker Pyre in Rust.

Unverified50%
Oct 4

In speed tests, Pyrefly checked PyTorch in 3.7 seconds versus MyPy's 54.92 seconds (approximately 15× faster), checked NumPy in 20 seconds versus MyPy's 1 minute 49 seconds, and checked scikit-learn in approximately 1 second versus MyPy's approximately 6.3 seconds (approximately 6× faster).

Unverified50%
Oct 4

Pyrefly can be integrated into an AI agent's work loop by adding a CLI skill and an agents.md file, causing the model to run a check after each change.

Unverified50%
Oct 4

Static checkers still require type annotations in the code to be effective; when there are no type annotations at all, Pyrefly will display 0 errors.

Unverified50%
Oct 4

Pyrefly's key feature is that the editor, terminal, and CI all use the same engine, so the results from the three never contradict each other.

Unverified50%

1 more timeline events

All Facts (10)

Unverified

Pyrefly's type checking rules are not entirely consistent with Pyright's, so migrating a project may require handling newly appearing diagnostics.

50%
Unverified

Pyrefly aims to provide type checking an order of magnitude faster than mypy and Pyright, and to support full type inference, generics, and the new PEP 695 syntax.

50%
Unverified

Pyrefly can be installed via uv add pyrefly or pip install pyrefly, and an entire project can be scanned by running uv run pyrefly check.

50%
Unverified

If no configuration file is present in a project, Pyrefly runs in basic mode and only checks for the most severe type issues; a configuration file must be added for more aggressive checks.

50%
Unverified

Static checkers still require type annotations in the code to be effective; when there are no type annotations at all, Pyrefly will display 0 errors.

50%
Unverified

Pyrefly is a Python static type checker created by Meta by rewriting its former OCaml-based type checker Pyre in Rust.

50%
Unverified

Pyrefly can be integrated into an AI agent's work loop by adding a CLI skill and an agents.md file, causing the model to run a check after each change.

50%
Unverified

In speed tests, Pyrefly checked PyTorch in 3.7 seconds versus MyPy's 54.92 seconds (approximately 15× faster), checked NumPy in 20 seconds versus MyPy's 1 minute 49 seconds, and checked scikit-learn in approximately 1 second versus MyPy's approximately 6.3 seconds (approximately 6× faster).

50%
Unverified

Pyrefly's key feature is that the editor, terminal, and CI all use the same engine, so the results from the three never contradict each other.

50%
Unverified

Zed added Pyrefly to the built-in list as an optional Python language server, which users can enable in Python's language_servers setting (PR #44262).

50%

Source Articles