github microsoft/pyright 1.1.206
Published 1.1.206

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

Bug Fix: Fixed a bug in the logic that determines whether a call expression is a "NoReturn". In particular, the logic wasn't handling the case where the call was to the constructor of a class that had a custom metaclass that defined a __call__ method.

Bug Fix: Fixed regression that caused a false positive error when attempting to invoke constructor for a class derived from ctypes.Structure. This class uses a custom metaclass with a custom __getattr__ method.

Bug Fix: Updated heuristics in type variable constraint solver to better handle literals in the case where bidirectional type inference is being used.

Enhancement: Updated dataclass_transform support so it applies to both metaclasses and base classes to conform to the latest version of the specification.

Bug Fix: Fixed bug that resulted in false positive errors when dealing with protocol classes that referred to themselves internally.

Bug Fix: Fixed bug in reportIncompatibleMethodOverride diagnostic check where it omitted an error if an overridden method had a decorator applied.

Bug Fix: Fixed a bug in the type evaluation of the two-argument for of super() when the second argument is a class instance and the call is made from within a class or static method.

Behavior Change: Added implied position-only parameter separator for Concatenate operator.

Enhancement: Added new diagnostic check reportUnnecessaryTypeIgnoreComment that emits a diagnostic when a # type: ignore comment has no effect.

Bug Fix: Fixed several bugs in type var constraint solver related to functions that have parameters that are callable that have parameters that are callable.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.