Skip to content

pyright

Fast static type checker for Python, as a CLI and a Visual Studio Code extension

Permissive (OSI) · MIT
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

82

Health

Thriving

Overview

Stars

15,760

Last commit

3 days ago

Nov 2026

Repository age

7 years

since Mar 2019

Latest version

1.1.414

Sep 2026

Contributors

–

14 active in 90 days

Releases

7

last 12 months

Language

Python

Pyright is a static type checker for Python. It follows the Python typing standards and is built to stay fast on large codebases. You get it as a command-line tool and as an extension for Visual Studio Code.

It reads your Python source and reports type errors without running the code. You can try it in a browser through the Pyright Playground. The project publishes a weekly benchmark against other Python type checkers, and tracks execution time and peak memory across releases. If it cannot create a temporary directory, you can set the PYRIGHT_TMPDIR environment variable to point it at a writable path.

Pyright is written by Microsoft and released under MIT. It has been developed since 2019 and has 15 contributors active in the last 90 days. A Homebrew formula is available for macOS and Linux. Core checking lives in this project, while language service features sit in Pylance, which has its own issue tracker.

Who it's for

Python teams adding type checks to CI

The CLI can run in a pipeline and flag type errors before merge.

Skip if: Your codebase has no type annotations and you do not plan to add them.

VS Code users writing typed Python

The extension shows type errors as you edit.

Skip if: You work in an editor with no Pyright integration.

Maintainers of large Python repositories

It is built for high performance on large source bases.

Skip if: You need a checker that also works as a runtime validator.

The problem it solves

Python does not check types when it runs, so type mistakes often show up late as runtime errors. A static type checker finds them while you write or in CI. Pyright does this quickly, even on large projects.

Strengths

  • Standards-based checking with a CLI and a VS Code extension
  • Built for large codebases, with weekly public benchmarks
  • MIT license with 15 contributors active in the last 90 days
  • Try it in the browser through the Playground
  • Release history tracks execution time and peak memory

Trade-offs

  • Reports type problems only and does not run your code
  • Language service features belong to Pylance, a separate product
  • Building from source needs Node.js 24 and pnpm
  • Contributions require agreeing to a Contributor License Agreement

Frequently asked questions

Is Pyright free?

Yes. It is released under the MIT license.

How do I use it?

Run the command-line tool or install the Visual Studio Code extension.

Can I try it without installing?

Yes. The Pyright Playground runs in your browser.

Where do I report bugs?

Use the pyright or pylance-release issue tracker. Core type checking issues go to pyright, language service issues to pylance-release.

Similar tools in Testing and code quality tools

MiniStack

Testing and code quality tools

Local AWS emulator for developers and CI pipelines, MIT licensed with no account

5.2k 554 yesterday Thriving MIT

Replaces Localstack

sonarqube

Testing and code quality tools

Self-hosted static analysis server that flags bugs and vulnerabilities in your code

11k 2.2k today Thriving LGPL-3.0

Buildbot

Testing and code quality tools

Python-configured continuous integration framework for custom, complex build workflows

5.5k 1.7k yesterday Active GPL-2.0

Replaces Jenkins

Floci

Testing and code quality tools

Free MIT-licensed local AWS emulator for development, testing and CI without an account

32k 3.6k today Thriving MIT

rust-clippy

Testing and code quality tools

Lint collection for Rust developers who want cleaner, more idiomatic code from cargo

14k 2.4k yesterday Active Apache-2.0

oss-fuzz

Testing and code quality tools

13k 3k today Active Apache-2.0