npm pyright 1.1.43
Published 1.1.43

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

Bug Fix: Fixed bug in type inference for list comprehensions. It should inter the type AsyncGenerator rather than Generator if the comprehension uses the "async" keyword.

Bug Fix: Fixed bug that caused overloaded function and class decorators to generate errors inappropriately.

Bug Fix: If a module cannot be resolved during type analysis, treat the symbol as "unknown" rather than "unbound" so usage of that symbol doesn't result in further errors.

Bug Fix: Fixed bug that generated incorrect error when a function declaration used a parameter with no default arg value after a parameter with a default arg value after a var-arg parameter.

Bug Fix: Fixed bug in handling of negative integers when used as Literal type arguments.

Enhancement: Updated typeshed stub files to the latest.

Enhancement: Added support for alternate syntax for TypedDict that uses named arguments rather than a single dictionary argument.

Bug Fix: Fixed bug where hover type of annotated variable was disclosed as "Unknown" if there was no assignment to that variable. It should display the annotated type.

Bug Fix: Fixed bug that caused the hover text for named arguments used to initialize a dataclass to indicate that the type was "Any" rather than the correct type.

Enhancement: Improved error messages for dictionary statements that are assigned to TypedDict variables or function arguments.

Bug Fix: Fixed a bug in code flow analysis logic that caused type to be evaluated as Never.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.