github microsoft/pyright 1.1.3
Published 1.1.3

latest releases: 1.1.383, 1.1.382, 1.1.381...
4 years ago

New Feature: The command-line version now accepts a command-line switch "outputjson". If provided, the output is a JSON structure including all diagnostics (errors and warnings). This format is useful for when pyright is used in a tool chain (e.g. a build system). It eliminates the need for consumers to parse the text output.

Enhancement: Added support for PEP 561 provision for type stubs that are packaged separately from a main package and placed in a peer directory ending in "-stubs".

Enhancement: Improved type completions for method definitions. When defining an override method from a base class, pyright now fills in the type signature for you.

Enhancement: Improved type widening rules for Literal types during TypeVar matching.

Enhancement: Improved printing of literal types. They're now combined (e.g. "Literal[1, 2]" instead of "Union[Literal[1], Literal[2]]").

Bug Fix: When typing floating-point values, type completion suggestions shouldn't be presented after the "."

Bug Fix: Added code to match syntax error detection and scope binding rules defined in PEP 572 for assignment expressions found within list comprehension expressions.

Bug Fix: Fixed issue where the progress spinner wasn't immediately hidden when onlyOpenFiles setting was toggled from false to true.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.