github microsoft/pyright 1.1.58
Published 1.1.58

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

Enhancement: Rework signature help to use new VS Code / LSP APIs. Function overrides and active parameters are handled much, much better.

Enhancement: Added strict-mode check for declared return types in type stubs, which don't allow for return type inference.

Bug Fix: Fixed bug in type checker that resulted in a crash when a function declaration referred to itself within its return type annotation.

Bug Fix: Fixed bug that caused duplicate diagnostics to be reported for quoted type annotations in some cases.

Bug Fix: Fixed bug that caused "find all references" and "replace symbol" to sometimes miss references to a symbol if they were within quoted type annotations or type comments.

Bug Fix: Fixed bugs in a few of the "find all references" tests, which were not properly quoting a forward-declared symbol.

Bug Fix: Fixed a bug that caused infinite recursion and a crash when printing the type of a function that refers to itself within its own return type annotation.

Bug Fix: Fixed bug where an f-string expression generated an error if it ended in an equal sign followed by whitespace. The Python 3.8 spec doesn't indicate whether whitespace is allowed here, but clearly the interpreter accepts it.

Bug Fix: Fixed bug in logic that handles chained comparisons (e.g. "a < b < c"). The code was not properly handling the case where the left expression was parenthesized (e.g. "(a < b) < c").

Enhancement: Improved bidirectional type inference in the case where the type and the expected type are generic but the expected type is a base class that has been specialized. For example, if the expected type is Mapping[str, int] and the type is a dict.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.