github microsoft/pyright 1.1.89
Published 1.1.89

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

New Feature: Added support for new reportUnsupportedDunderAll diagnostic rule. It checks for unsupported manipulations of __all__.

New Feature: Implemented new diagnostic rule reportUnusedCallResult that checks whether a call expression's results are consumed. If the results are None or Any, no diagnostic is produced.

Enhancement: Added support for isinstance and issubclass type narrowing when "cls" or "self" parameters are used in the second argument

Bug Fix: Fixed recent regression with TypeGuard type that caused spurious error when a bool value was return from a user-defined type guard function.

Bug Fix: Fixed bug in reportIncompatibleMethodOverride diagnostic check where it incorrectly reported an error if a derived class used overload functions on an overridden method.

Bug Fix: Fixed bug that caused incorrect binding when invoking a class method through an instance.

Bug Fix: Fixed handling of recursive type annotations for variables (e.g. "int: int"). In some specific situations this is allowed if the annotation refers to a symbol in an outer scope.

Bug Fix: Fixed several bugs related to constructor type inference when the expected type contained generic types with type arguments that contained type variables defined in a context outside of the constructor's call site.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.