npm pyright 1.1.50
Published 1.1.50

latest releases: 1.1.361, 1.1.360, 1.1.359...
3 years ago

Bug Fix: Fixed regression in completion provider when retrieving suggestions for "self.". Added test to cover this case.

Enhancement: Changed "x is not iterable" diagnostic to be part of the "reportGeneralTypeIssues" rule so it doesn't get reported if typeCheckingMode is "off".

Bug Fix: Fixed bug that caused incorrect behavior when a symbol was imported multiple times in the same file.

Bug Fix: Fixed bug that caused Callable instance variables to be treated as though they needed to be "bound" to the object at the time they were accessed. This resulted in spurious errors about parameter count because an implicit "self" parameter was assumed.

Enhancement: Improved type analysis performance by 5-10% on typical code and by significantly more on certain code sequences that involve many if statements within a loop. This optimization uses code flow caching to determine when incomplete types (those that haven't been fully resolved) are potentially stale.

Bug Fix: Fixed recent regression related to imports of the form "from .x import y" within an __init__.py(i) file.

Enhancement: Changed type analyzer to use module-level __getattr__ for types only if the file is a stub.

Enhancement: Added code to prevent "variable possibly unbound" error from propagating to other variables. It should be reported only once.

Enhancement: Switched "pyright.typeCheckingMode" to "python.analysis.typeCheckingMode" for compatibility with Pylance.

Enhancement: Moved a few parameter-related diagnostics to the "reportGeneralTypeIssues" diagnostic rule rather than being unconditional errors.

Bug Fix: Fixed bug that resulted in incorrect type inference for a member variable that is not assigned within a class but is assigned within an ancestor class.

Enhancement: Added type narrowing support for "is" and "is not" operator where RHS is an enum literal value.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.