Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pyright

> 编程语言
Open source

Static Type Checker for Python

15.6K stars0 likes2 views
WebsiteGitHub

About

Static Type Checker for Python

Static Type Checker for Python

Pyright is a full-featured, standards-based static type checker for Python. It is designed for high performance and can be used with large Python source bases.

Pyright includes both a command-line tool and an extension for Visual Studio Code.

Pyright Playground

Try Pyright in your browser using the Pyright Playground.

Documentation

Refer to the documentation for installation, configuration, and usage details.

Environment variables

If Pyright fails to create a temporary directory (for example in remote/server environments where the OS temp directory doesn't exist or isn't writable), you can override the temp directory root:

  • PYRIGHT_TMPDIR: Absolute path to a directory that Pyright can use for temporary files/directories. Pyright will create it if needed.

Pyright otherwise relies on the platform temp directory (for example TMPDIR, TMP, TEMP, or the OS default).

Community

Do you have questions about Pyright or Python type annotations in general? Post your questions in the discussion section.

If you would like to report a bug or request an enhancement, file a new issue in either the pyright or pylance-release issue tracker. In general, core type checking functionality is associated with Pyright while language service functionality is associated with Pylance, but the same contributors monitor both repos. For best results, provide the information requested in the issue template.

Contributing

This project welcomes contributions and suggestions. For feature and complex bug fix contributions, it is recommended that you first discuss the proposed change with Pyright’s maintainers before submitting the pull request. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Issues· 327 open

View all issuesOpen on GitHub
  • #11811

    `__getattribute__` return type is not reflected in the type of attributes

    bugUpdated Oct 1, 2026
  • #11813

    Identity aliases not handled properly

    bugUpdated Oct 1, 2026
  • #11812

    False positive when union type is asserted to one type

    bugUpdated Oct 1, 2026
  • #11810

    Circular `TypeAliasType`s are not understood in `TypedDict` & `NamedTuple`

    bugUpdated Sep 30, 2026
  • #11736

    `TypeVar` with `Never` as an option and unexpected `reportArgumentType`

    bugUpdated Sep 29, 2026
  • #11519

    Incorrect type of the returned value of `map()` when applying to a class property

    bugfixed in next version (main)Updated Sep 28, 2026
  • #11803

    `pyright --verifytypes` doesn't see docstring if docstring is placed within base clas

    bugUpdated Sep 28, 2026
  • #11794

    Types silently degrade to Unknown when elif branch count is too high

    bugUpdated Sep 22, 2026
  • #11067

    exponential slowdown when using `yield from` with type alias

    bugUpdated Sep 22, 2026
  • #11759

    Performance problems when using very large TypedDicts

    bugaddressed in next versionUpdated Sep 17, 2026

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言