github microsoft/pyright 1.1.120
Published 1.1.120

latest releases: 1.1.363, 1.1.362, 1.1.361...
3 years ago

Bug Fix: Fixed type evaluation bug that resulted in the incorrect inference of an exception type within an "except X as Y" clause when the expression X was a bound TypeVar.

Enhancement: Improved detection and error reporting for class definitions that depend on themselves (illegal cyclical dependency). Previously, pyright failed in ways that were difficult to diagnose.

Enhancement: Added support for symbolic links in import resolver both for resolution of ".pth" files and for imports themselves.

Behavior Change: Removed support for "venv" entry in execution environments since this never really worked. Clarified in documentation that import resolution within an execution environment is not transitive.

Bug Fix: Fixed bug in completion provider that caused class variables not be included as suggestions as members for the "cls" parameter in a class method.

Enhancement: Added error check for access to non-required fields in a TypedDict using a subscript with a literal string field name. Added support for "narrowing" of a TypedDict class based on guard expression of the form "S in D" where S is a string literal name of a non-required field. Improved the synthesized "get" method on a TypedDict for non-required fields; it now returns an Optional[T] (where T is the defined type for that field) rather than just T.

Enhancement: Updated to the latest typeshed stubs.

Enhancement: Added error check for a "yield" or "yield from" statement used within a list comprehension. This generates a runtime syntax error.

Bug Fix: Fixed bug in type inference for value returned by a "yield" or "yield from" statement.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.