pyright/client
2020-05-15 13:01:55 -07:00
..
images Updated logo and added icon for VS Code extension. 2019-03-21 20:00:47 -07:00
schemas Fix windows bug, add PEP 604 printing, fix unused variable action, add stubPath and diagnosticMode (#673) 2020-05-15 13:01:55 -07:00
src Upgrade to Prettier 2.0, reformat (#610) 2020-04-07 17:18:22 -07:00
typeshed-fallback Removed one recent change from buitlins.pyi to zip overload. I think it's problematic and is likely to be backed out of typeshed. 2020-05-13 23:53:47 -07:00
.vscodeignore Optimized production build of server, reducing the startup time and overall size of the VS Code extension significantly. 2019-10-05 22:42:25 -07:00
CHANGELOG.md Added README and CHANGELOG to client folder so they appear in VS Code extensions panel. 2019-04-19 23:53:50 -07:00
package-lock.json Published 1.1.36 2020-05-09 16:24:31 -07:00
package.json Fix windows bug, add PEP 604 printing, fix unused variable action, add stubPath and diagnosticMode (#673) 2020-05-15 13:01:55 -07:00
README.md Mass reformat ts/js/md with ESLint quick fixes and prettier (#113) 2020-02-24 16:52:23 -08:00
tsconfig.json Fix webpack 2020-02-04 11:31:45 -08:00

Static type checker for Python

Speed

Pyright is a fast type checker meant for large Python source bases. It can run in a "watch" mode and performs fast incremental updates when files are modified.

Configurability

Pyright supports configuration files that provide granular control over settings. Different "execution environments" can be associated with subdirectories within a source base. Each environment can specify different module search paths, python language versions, and platform targets.

Type Checking Features

  • PEP 484 type hints including generics
  • PEP 526 syntax for variable annotations
  • PEP 544 structural subtyping
  • PEP 589 typed dictionaries
  • Type inference for function return values, instance variables, class variables, and globals
  • Smart type constraints that understand conditional code flow constructs like if/else statements

VS Code Language Features

The VS Code extension supports many time-saving language features including:

  • Intelligent type completion of keywords, symbols, and import names appears when editing
  • Import statements are automatically inserted when necessary for type completions
  • Signature completion tips help when filling in arguments for a call
  • Hover over symbols to provide type information and doc strings
  • Find Definitions to quickly go to the location of a symbol's definition
  • Find References to find all references to a symbol within a code base
  • Rename Symbol to rename all references to a symbol within a code base
  • Find Symbols within the current document or within the entire workspace
  • Organize Imports command for automatically ordering imports according to PEP8 rules
  • Type stub generation for third-party libraries

Built-in Type Stubs

Pyright includes a recent copy of the stdlib type stubs from Typeshed. It can be configured to use another (perhaps more recent or modified) copy of the Typeshed type stubs. Of course, it also works with custom type stub files that are part of your project.

For more details, refer to the README on the Pyright GitHub site.