Pyright checks Python types for correctness and performance on large codebases. It ships as a command-line tool and as a Visual Studio Code extension.
Overview
Pyright is a static type checker for Python that implements standard typing rules. It targets teams working on sizable Python trees who want fast feedback on type errors before runtime.
Users can run Pyright from the command line in local or automated workflows, or install the Visual Studio Code extension for editor-integrated checking. A browser-based playground lets you try the checker without a local setup.
Documentation covers installation, configuration, and everyday usage. Maintainer notes describe contributor setup for working on the CLI and extension, plus environment variables such as PYRIGHTTMPDIR when the default OS temp directory is unavailable.
Community discussion and issue trackers separate core type-checking behavior from language-service features often associated with Pylance, though the same maintainers monitor both. Benchmark and release-history material tracks checker performance over time.
Key features
- Standards-based Python type checking
- Command-line checker
- Visual Studio Code extension
- Browser playground
- Configurable analysis settings
- Temp directory override via PYRIGHTTMPDIR
- Performance tracking across releases
Use cases
- CI type checking for Python projects
- Editor feedback while editing Python
- Validating annotations on large codebases
- Trying type rules in the playground