github microsoft/pyright 1.1.98
Published 1.1.98

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

New Feature: Added new diagnostic rule "reportUnusedCoroutine" that reports an error if the result returned by an async function is not consumed (awaited, assigned to a variable, etc.). This detects and reports a common error when using async coroutines.

Enhancement: Improved error messages for invalid type annotation syntax usage.

Enhancement: Updated to the latest typeshed stubs.

Bug Fix: Fixed recent regression in error message for bound TypeVars that resulted in a confusing message.

Bug Fix: Fixed bug in error messages for parameter type incompatibility; reported parameter number off by one leading to confusing message.

Bug Fix: Fixed bug in type compatibility logic when the destination was a metaclass instance and the dest was a class that derived from that metaclass.

Bug Fix: Fixed bug that caused failure in protocol type matching when the protocol contained a method with an annotated "self" parameter.

Behavior Change: If a class derives from a protocol class explicitly, individual members are no longer type-checked. This improves performance of type evaluation in some cases.

Bug Fix: Fixed bug whereby the presence of a __getattr__ method on a class with no __init__ method generated an incorrect error when instantiating the class.

Enhancement: Implemented complete support for module-level __getattr__ functions as described in PEP 562.

Behavior Change: Eliminated restriction that prevented the analysis of text files that don't end in ".py" or ".pyi".

Don't miss a new pyright release

NewReleases is sending notifications on new releases.