Skip to content

Releases: microsoft/pyright

Published 1.0.6

31 Mar 03:05
Compare
Choose a tag to compare

New feature: Progress reporting in VS Code status bar.
New feature: Return type validation is now disabled for methods with @abstractmethod decorator.
New feature: Added JSON schema for pyrightconfig.json file so VS Code provides IntelliSense.
New feature: Added validation of type arguments for specialization of generic types. These are now validated against TypeVar constraints and bounds.
New feature: Added "ignore" settings which silences any errors or warnings generated for specified files or directories.
New feature: Added more validation of venvPath, pythonPath, typingsPath, typeshedPath and other settings to help diagnose configuration problems.
Fixed bug that caused venvPath and pythonPath not to be honored in config file.
Fixed regression that caused unknown symbols used in type annotations not to be flagged as errors.
Fixed bug in expression evaluator that resulted in false positive type errors.
Fixed bug in type constraint logic to invalidate previous constraints when a value is modified through an assignment.
Fixed handling of __new__ magic method when it's called explicitly by name.
Fixed bug in type checking of functions that are passed as parameters.
Fixed logic that specializes generic types when no type parameters are specified (e.g. List or Callable).
Fixed bug that caused the analyzer to crash if a class derived from itself. This is now reported as an error case.
Made analyzer more resilient to internal errors. Rather than getting into an infinite loop of retries, it now flags a source file as complete and moves on.
Started to add tests for type analyzer.
Fixed crash that occurred if an input file or directory was invalid.
Further improved responsiveness of error reporting for files open within the editor.

Published 1.0.5

29 Mar 06:38
Compare
Choose a tag to compare

Fixed several bugs in type constraint engine.
Improved performance of VS Code extension by increasing analysis batch time.
Added assignment type constraint for instance and class variables.
Fixed special-case type checking rules for int and float.
Fixed handling of type annotations that involve generic classes with no type variables (e.g. "list").

Published 1.0.4

27 Mar 07:06
Compare
Choose a tag to compare

Added better support for generic type subclass analysis, including support for covariance and contra variance.
Fixed bug that caused type analysis not to converge sometimes, resulting in an infinite loop.
Fixed crashing bug that could occur if typeshed files were not found.
In VS Code extension, filled in "source" string so "pyright" appears in the problems panel.
Added support for a few configuration settings in VS Code that are common to the standard VS Code Python extension.
Added new config setting "reportMissingTypeStubs" to differentiate from "reportMissingImports".
Fixed bug in "isinstance" type constraint handling. Its logic was reversed when checking for subtypes.
Disabled reporting of errors to return type mismatches in generator functions. This will be enabled again once generator and coroutine support is added to the analyzer.
Added an error output when configuration specifies a python version older than 3.0.
Fixed reported type analysis bug that affected built-in types that had aliases defined in the collections.pyi type stub (notably, Deque, DefaultDict and ChainMap).

Published 1.0.1

24 Mar 05:02
Compare
Choose a tag to compare

Fixed numerous bugs.

Published 1.0.0

22 Mar 04:46
Compare
Choose a tag to compare

Initial release of Pyright VS Code plugin.