npm pyright 1.1.257
Published 1.1.257

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

Behavior Change: Reverted recent change that resulted in false positive errors when using _ as a placeholder name for methods that are used with @register and similar decorators.

Bug Fix: Fixed regression in isinstance type narrowing when the filter type is a type[x] rather than x.

Performance: Implemented performance optimization related to overload evaluation.

Behavior Change: Changed type_assert diagnostics to fall under reportGeneralTypeIssues diagnostic rule rather than be emitted unconditionally.

Bug Fix: Fixed regression in completion provider by eliminating the recently-added commit characters.

Performance: Improved performance of semantic highlights, hover, and completion suggestions for member access expressions.

Performance: Improved performance in type guard logic by not evaluating a call expression base type until after verifying that the call potentially narrows the reference expression.

Bug Fix: Fixed a bug in the handling of for loops that resulted in incorrect type inference for the target expression.

Bug Fix: Fixed several bugs that resulted in incorrect type evaluations when a property getter or method has an inferred return type that contains a type variable.

Bug Fix: Fixed a bug that resulted in incorrect type evaluation of NewType for versions of python older than 3.8. (In 3.8, NewType was changed from a function to a class.)

Enhancement: Implemented provisional support for proposed PEP 695: Improved Syntax for Type Parameters. The new functionality is available only if you manually configure pyright to assume Python 3.12. It supports the new type parameter syntax, support for "type" statements (for type alias declarations) and support for autovariance.

Enhancement: Updated typeshed stubs to the latest version.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.