github microsoft/pyright 1.1.121
Published 1.1.121

latest releases: 1.1.362, 1.1.361, 1.1.360...
3 years ago

Bug Fix: Fixed a bug that generated a false positive error when a function (or other callable) was assigned to a Hashable protocol.

Enhancement (from pylance): Made auto-imports lazy for better completion suggestion performance.

Enhancement (from pylance): Improved readability of hover text for functions and methods with overloaded signatures.

Bug Fix: Fixed false positive error when using an instance or class variable defined within a Protocol class within a method in that same class. The previous logic was based on a misinterpretation of a sentence in PEP 544.

Bug Fix: Fixed false positive error in type checker when dealing with two types that are both unions and both contain constrained type variables.

Bug Fix: Fixed improper handling of symlinks used in editable installs. This affected auto-import functionality.

Bug Fix: Fixed recent regression that caused crash in hover provider.

Bug Fix (from pylance): Fixed issue that caused editable installs to require a restart of the language server before their effects were visible.

Bug Fix: Fixed false positive error during TypeVar constraint solving in the case where the same TypeVar is used in both the form T and Type[T] in the same signature.

Enhancement: Improved support for enums. The Python spec indicates that attributes that start and end with an underscore are not treated as enum members, nor are attributes that are assigned a descriptor object.

Enhancement: Added support for inferring the "value" and "name" fields of an enum.

Bug Fix: Added support for unparenthesized pattern subject lists in match statement.

Bug Fix: Fixed false positive error related to a type alias declared within a class.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.