github microsoft/pyright 1.1.141
Published 1.1.141

latest releases: 1.1.361, 1.1.360, 1.1.359...
2 years ago

Enhancement: Improved "is None" and "is not None" type narrowing logic for constrained TypeVars that include None as one of the constraints.

Enhancement: Improved error message for illegal character in token and surrogate character codes combinations that are not allowed in identifiers.

Enhancement: Added support for more surrogate character ranges that I didn't realize existed when I added the initial support.

Behavior change: Don't prefer py.typed libraries when the execution environment is typeshed.

Bug Fix: Fixed bug in signature help provider where it was not properly handling a call with a type Type[T].

Bug Fix: Fixed bug in code that handles "super" call when a cls variable is passed as the first argument.

Bug Fix: Changed the way the current parameter index is specified in signature help to better conform to LSP standard.

Enhancement: Improved the "X is incompatible with Y" error message in the case where types X and Y have the same short name. In this case, the fully-qualified names will be used to provide clarity.

Bug Fix: Fixed bug that resulted in false positive when generic type was used for iterable within a list comprehension.

Bug Fix: Fixed bug that resulted in incorrect errors when using a TypeVar imported from another file and referenced using a member access expression (e.g. typing.AnyStr).

Enhancement: Added support for defaults argument in namedtuple constructor, which marks the rightmost input parameters to the resulting named tuple as having default values.

Behavior change (from pylance): Filter auto-imports more strictly to reduce the number of completions returned. Matches require at least the first character to match before fuzzy matching is applied.

Enhancement (from pylance): Add support for tables in docstrings.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.