npm pyright 1.1.41
Published 1.1.41

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

Enhancement: Added type guard support for conditional expressions of the form (x := expr) is None and (x := expr) is not None.

Enhancement: Added logic to "gray out" code after a call to a "NoReturn" function to indicate that the code is unreachable.

Bug Fix: Fixed bug that resulted in a crash if a type annotation on an instance variable referred back to the variable itself.

Bug Fix: Fixed bugs in a couple of localized strings.

Bug Fix: Fixed bug that caused private variables to be reported as unaccessed in cases where they were.

Bug Fix: Fixed hole in exception handling within type evaluator that could leave the control flow graph in an inconsistent state if a cancellation exception occurred at the wrong time.

Bug Fix: When typeCheckMode is set to "off", avoid displaying "Any" twice within a Union (due to "Unkown" being reported as "Any").

Enhancement: Improved support for nested finally clauses.

Enhancement: Hover results for named parameter at call site now displays the expected parameter type rather than the provided argument type.

Bug Fix: Fixed compliance with PEP 557 which says that fields without type annotations shouldn't be considered as data fields within a data class.

Bug Fix: Fixed bug in chained comparison expression handling (e.g. a < b < c) that caused the left half of the expression not to be type checked.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.