npm pyright 1.1.88
Published 1.1.88

latest releases: 1.1.381, 1.1.380, 1.1.379...
3 years ago

Enhancement: This release includes a major update to TypeVar code. The type checker is now much more strict about how TypeVars are treated when analyzing the bodies of generic functions or methods within generic classes.

Bug Fix: Fixed bug in synthesis of comparison operators in dataclass. By default, these methods should not be synthesized unless order=True is passed to the @dataclass decorator.

Bug Fix: Fixed bug that caused incorrect specialization of a TypeVar when used in a descriptor class with a __set__ method.

Bug Fix: Fixed incorrectly handling of generic type alias that is defined in terms of other generic type aliases.

Bug Fix: Fixed bug that caused incorrect overload to be selected in cases where a named argument was used.

Enhancement: Improved signature help for calls to namedtuple constructor.

Bug Fix: Added support for a generic method whose "self" parameter is annotated with a bound TypeVar and is then invoked using another bound TypeVar.

Bug Fix: Improved error reporting for assignments to protocols.

Enhancement: Added support for the instantiation of a class via a constructor when the type of the class is specified as a TypeVar.

Bug Fix: Fixed inappropriate error in strict mode when a named argument for a call expression begins with an underscore.

Bug Fix: Fixed bug that results in an incorrect type when a call to a function returns a generic type and the result is assigned to a variable with a declared type that includes a union.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.