github microsoft/pyright 1.1.86
Published 1.1.86

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

Enhancement (from Pylance): Improvements to completion provider and signature help provider.

Bug Fix: Allow TypeAlias to be used prior to Python 3.10 if imported from typing_extensions.

Enhancement: Added special-case handling for magic method __class_getitem__, which is implicitly a classmethod.

Enhancement: Added support for classes that include the __class_getitem__ magic method to provide custom behaviors for subscripting.

Enhancement: Support detecting multiple site-packages directories in venvs. [Contribution by Truls Asheim]

Bug Fix: Fixed bug that caused incorrect type errors when dealing with magic methods on the tuple class.

Bug Fix: Fixed a confusing diagnostic message relating to incorrect method override.

Enhancement: Enforced that TypeVars being solved for in a TypeVar map match the expected scope.

Bug Fix: Fixed bug in synthesized setdefault method on TypedDict for required entries, which never use the default value.

Bug Fix: Fixed bug that resulted in an inappropriate error when a kwarg parameter was typed with a class-defined TypeVar (e.g. **kwargs: _VT).

Bug Fix: Made the check less strict for the use of covariant type vars within a function input parameter annotation. In particular, unions that contain covariant type vars are now permitted.

Enhancement: Add future module as import suggestion. [Contribution by cdce8p]

Bug Fix: Fixed bug that caused the issubtype type narrowing logic to fail when used with a bound TypeVar T in combination with Type[T].

Bug Fix: Don't add suggestions for 'with Y as [ ]'. [Contribution by cdce8p]

Enhancement: Type aliases are now expanded in completion provider text in the same way as the hover text. [Contribution by cdce8p]

Enhancement: Improve handling of type aliases for auto-import. [Contribution by cdce8p]

Don't miss a new pyright release

NewReleases is sending notifications on new releases.