Repolode
microsoft

microsoft/pyright

A standards-based static type checker for Python, with a command-line tool and a Visual Studio Code extension, built for large codebases.

Stars
15,731
Forks
1,841
Open issues
384
Last commit
23 hours ago

What is it?

Pyright is a static type checker for Python that analyzes source code without running it and reports type errors against the Python typing standards. It is designed for high performance and is meant to work on large Python codebases.

It ships as a command-line tool and as an extension for Visual Studio Code. The project also offers an in-browser Pyright Playground for trying out code snippets, and publishes a weekly benchmark comparing it with other Python type checkers, along with a release history of per-package execution time and peak memory.

In environments where the OS temp directory is missing or read-only, such as some remote or server setups, the temporary directory root can be overridden with the PYRIGHT_TMPDIR environment variable.

Key features

  • 01Standards-based static type checking for Python source code.
  • 02Command-line tool for running checks in CI or locally.
  • 03Visual Studio Code extension for in-editor type feedback.
  • 04Browser-based Playground for trying snippets without installing anything.
  • 05Environment variable to override the temporary directory on restricted systems.

Use cases

  • Adding type checking to a large Python codebase in CI pipelines.
  • Getting type feedback while editing Python code in Visual Studio Code.
  • Comparing type checker performance on Python projects.

Things to know

  • The license could not be automatically identified from the repository metadata, so check the license file before use.

Topics

FAQ

What is pyright?
A standards-based static type checker for Python, with a command-line tool and a Visual Studio Code extension, built for large codebases. Pyright is a static type checker for Python that analyzes source code without running it and reports type errors against the Python typing standards. It is designed for high performance and is meant to work on large Python codebases.
Is pyright free to use? What license does it have?
pyright is open source under the Other license. Check the license terms before using it in commercial products.
Is pyright still maintained?
Actively maintained. The last commit to pyright was on Nov 7, 2026.
What can I use pyright for?
Adding type checking to a large Python codebase in CI pipelines. Getting type feedback while editing Python code in Visual Studio Code. Comparing type checker performance on Python projects.
Where can I get pyright?
The source code and installation instructions are on GitHub: https://github.com/microsoft/pyright

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects