github microsoft/pyright 1.1.146
Published 1.1.146

latest releases: 1.1.383, 1.1.382, 1.1.381...
3 years ago

Enhancement: Updated to the latest version of typeshed stubs.

Behavior Change: Updated reportIncompatibleVariableOverride to avoid reporting an error when a class variable is reassigned a value in a base class without declaring its type.

Bug Fix: Fixed false positive error indicating that a type alias is a variable. This results when a type alias refers to a union and that union is reformed when losing the original type alias.

Enhancement: Added optimization for union creation where all subtypes are the same. This optimization commonly reduces the need to create new types during code flow operations. It also retains type alias info more faithfully.

Enhancement: Added support for __qualname__ and __module__ attributes within a class body.

Behavior Change: Changed call expression evaluation logic to not skip return type inference when there are errors detected during argument expression evaluation. This was previously added as an optimization, but it was leading to confusing results in some cases.

Enhancement: Enhanced logic to detect unannotated decorator functions and treat them as no-ops rather than using return type inference, which often leads to incorrect and confusing results for decorators.

Bug Fix: Fixed bug in pattern matching logic for class patterns where the class uses properties or descriptors for the targeted attributes.

Enhancement (from pylance): Added support for libraries packages as zip/egg containers.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.