github microsoft/pyright 1.1.158
Published 1.1.158

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

Bug Fix: Fixed handling of generic type aliases with missing type arguments used in type annotations when the type alias itself is a member access expression.

Enhancement: Added new diagnostic check (controlled by the existing "reportUnsupportedDunderAll" config switch) that reports an issue with a name specified in __all__ if that symbol does not exist at the module level.

Enhancement: Updated typeshed stubs to latest version.

Enhancement: Added support for nested callables that use a ParamSpec at each level.

Bug Fix: Fixed false positive error related to the use of the Final keyword when annotating attributes within a dataclass.

Bug Fix: Fixed bug in TypeVar matching logic that allowed Type[T] to be matched against an instance of a type.

Behavior Change: Changed type checking logic for functions to allow a function with a return result of NoReturn to match against any other return type.

Bug Fix: Fixed false positive error in parser dealing with f-strings with string literals within the f-string expression that, in turn, have quotes within the string literal.

Enhancement: Added support for "attribute docstrings" (defined in PEP 258) in completion provider.

Bug Fix: Fixed bug in type analyzer related to a TypeVar with a bound type that is a union.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.