# Pyrefly

> A fast type checker and language server for Python, written in Rust

Source: https://talira.ai/catalog/pyrefly-s1pv2yrr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / type checking](https://talira.ai/categories/developer-tools/type-checking), [developer tools / language servers](https://talira.ai/categories/developer-tools/language-servers), [languages / python](https://talira.ai/categories/languages/python)
- Platforms: macos, linux, windows[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Meta](https://talira.ai/orgs/meta.md)
- Funding: public company (NASDAQ:META)[^3]

Pyrefly is Meta's open source type checker and language server for [Python](https://talira.ai/catalog/python-tgjs08pq.md), written in [Rust](https://talira.ai/catalog/rust-mf51vs5t.md). It type checks large codebases quickly (its README cites PyTorch checked 15x faster than [mypy](https://talira.ai/catalog/mypy-b1eegf0c.md) and [Pyright](https://talira.ai/catalog/pyright-8xnxsfgw.md)) and gives editors go to definition, autocomplete, hover, inlay hints and semantic highlighting, with the same results on the command line and in the editor. It understands Pydantic, Django and pytest, has experimental tensor shape checking for PyTorch, and helps teams migrate from Mypy or Pyright with `pyrefly init`, `pyrefly suppress` and `pyrefly infer`. It's installed with pip, and has editor extensions for VS Code (also on Open VSX), Neovim and Zed. Google uses it for its monorepo and Instagram for 20 million lines of Python, and it's Positron's default Python language server.

## Links

- Website: https://pyrefly.org/
- GitHub: https://github.com/pyrefly-org/pyrefly
- Docs: https://pyrefly.org/en/docs/

## Problems it solves

- Python type checking takes too long on our big codebase
- get fast autocomplete and type errors for Python in my editor
- move our Python project off Mypy to a faster type checker

## Features

- fast Python type checking
- language server: go to definition, autocomplete, hover, inlay hints
- Pydantic, Django and pytest support
- experimental tensor shape checking for PyTorch
- migration from Mypy or Pyright with init, suppress and infer

## Trust

Overall: 0.76 out of 1.
Signals: maintenance 1.00, adoption 0.77, momentum 0.77, community 1.00, backing 0.55, extensibility 0.00.

- last commit today
- 3329 commits in the last 90 days
- latest release 1.5.0 5 days ago
- 7.2k GitHub stars
- 412 contributors
- backed by Meta
- funding: public company (NASDAQ:META)

## Alternatives

- [ty](https://talira.ai/catalog/ty-aw94qs4x.md): An extremely fast Python type checker and language server, written in Rust
- [Pyright](https://talira.ai/catalog/pyright-8xnxsfgw.md): Static type checker for Python
- [mypy](https://talira.ai/catalog/mypy-b1eegf0c.md): Optional static typing for Python
- [Pylance](https://talira.ai/catalog/pylance-cv0es80q.md): A performant, feature-rich language server for Python in VS Code
- [Sorbet](https://talira.ai/catalog/sorbet-7qt3f670.md): A fast, powerful type checker designed for Ruby
- [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md): JavaScript with static types, compiled to plain JavaScript

## Sources

[^1]: https://github.com/pyrefly-org/pyrefly/blob/main/LICENSE (checked 24 Nov 2026)
[^2]: https://pypi.org/project/pyrefly/ (checked 24 Nov 2026)
[^3]: https://data.sec.gov/submissions/CIK0001326801.json (checked 20 Nov 2026)
