github microsoft/pyright 1.1.46
Published 1.1.46

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

Enhancement: Added checks to ensure that type annotations contain only class types, not instantiated objects.

Enhancement: Added code to filter out duplicate "pseudo-generic" types in unions when printing them. We omit the type arguments when printing pseudo-generic types, so without this filtering, we were seeing seemingly-duplicated types.

Enhancement: Added support for literal type aliases used within Literal type arguments.

Bug Fix: Fixed bug in handling of unpack operator when used as an assignment target. It should be typed as List, not as Iterable.

Bug Fix: Fixed recent regression that affected the logic that combines Literal[True] and Literal[False] into bool.

Enhancement: Added support for several "type" metadata fields that are accessible on classes that derive from type. This includes __subclasses__, __module__, etc.

Enhancement: Added more trace logging to output pane.

Bug Fix: Fixed bug in hover text. Sometimes hovering over a module import target didn't display the module-level doc string.

Enhancement: Added severity level enum to package.json so it is editable within the VS Code settings UI.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.