github microsoft/pyright 1.1.80
Published 1.1.80

latest releases: 1.1.388, 1.1.387, 1.1.386...
4 years ago

Bug Fix: Fixed bug that caused an incorrect error when self.__class__ was used as the second argument to an isinstance call.

Bug Fix: Changed logic for function return type inference so "unbound" type is never propagated to callers. This eliminates incorrect and confusing errors.

Bug Fix: Fixed bug in type stub generator. It was not properly handling annotated variables (either those with PEP 593 annotations or older-style type comment annotations).

Bug Fix: Fixed bug in completion provider that caused submodules within a namespace module not to be suggested within a "from x import y" statement.

Bug Fix: Fixed misleading error message within "from x import y" statement where x was a namespace package and y was not found. The error was being reported as an "unresolved import x" rather than "unknown symbol y".

Bug Fix: Fixed bug in type evaluator that caused spurious errors related to variables used within "for" and "if" statements within a comprehension.

Bug Fix: Fixed bug that caused incorrect error to be reported when a recursive type alias was used in certain circumstances.

Enhancement: Improved type inference for tuples in circumstances where literals are used within a tuple expression and when tuple expressions are assigned to an expected type that is not a tuple but is a compatible type (such as Iterable).

Bug Fix: Fixed bug that resulted in incorrect error about TypeVar being used incorrectly. The specific condition was when it was referenced within a method within a generic class and one of the method's parameters also referenced the same TypeVar.

Bug Fix: Fixed bug where declared variable with literal types in type arguments were being stripped of those literals when the variable was exported from a module.

Bug Fix: Fixed bug that caused duplicate error messages involving certain TypeVar assignments.

Enhancement: Added diagnostic check for dictionary unpack operator (**) if the operand is not a mapping object.

Enhancement: Added new diagnostic rule "reportInvalidTypeVarUse" that controls reporting of TypeVars that appear only once in a function signature. By default it is off in basic type checking mode but on in strict mode.

Enhancement (from Pylance): Added support for increment text changes in language server interface. This will theoretically improve performance for edits in large source files.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.