Pyright logo

Pyright

Performs fast incremental updates when files are modified and is typically 5x or more faster than other Python type checkers.

Made by Microsoft

  • python-development

  • Python

What is Pyright?

Pyright is a high-performance static type checker for Python, designed to address the limitations of existing type checkers like mypy. Typically 5x or more faster than its Python-based counterparts, Pyright is particularly well-suited for large Python codebases, offering a range of advanced features to enhance developer productivity One of Pyright's key strengths is its speed and efficiency. Written in TypeScript and running within the Node.js runtime, Pyright does not rely on a Python environment or imported third-party packages, making it particularly useful when integrated with the popular VS Code editor, which uses Node.js as its extension runtime Pyright's configurability sets it apart from other type checkers. It supports flexible configuration options, allowing developers to specify different "execution environments" for various subsets of a source base. Each environment can be tailored with unique PYTHONPATH settings, Python language versions, and platform targets, providing granular control over the type-checking process Furthermore, Pyright can run in a "watch" mode, performing fast incremental updates when files are modified, enabling seamless integration into development workflows. This capability is particularly valuable for large projects, where traditional type checkers may struggle with the overhead of full rebuilds

Highlights

  • Significantly faster performance compared to Python-based type checkers like mypy
  • Designed for large-scale Python codebases
  • Runs within the Node.js runtime, eliminating dependency on a Python environment
  • Highly configurable, allowing customization of execution environments
  • Supports fast, incremental type-checking updates when files are modified

Platforms

  • Windows
  • Linux
  • Mac
  • Python

Languages

  • English

Social