npm pyright 1.1.133
Published 1.1.133

latest releases: 1.1.388, 1.1.387, 1.1.386...
3 years ago

Bug Fix: Fixed bug that resulted in a false positive error within type checker when a constrained TypeVar was used in a lambda callback.

Bug Fix: Fixed bug in type variable constraint solver that resulted in false positive error in certain cases involving bidirectional type inference with unknown (or missing) type arguments.

Enhancement: Reduced memory consumption of tokenizer for string literal tokens.

Enhancement: Improved performance of type analyzer in cases where certain type checking diagnostic rules are disabled.

Enhancement: Improved startup time of pyright by eliminating redundant calls to Python interpreter to retrieve import resolution paths.

Behavior Change: Automatically mark parameters as accessed (so they don't appear as "grayed out") in the following circumstances: 1) it is a self parameter in an instance method, 2) it is a cls parameter in a class method, 3) it is a parameter in a method marked abstract, 4) it is a parameter in a method that is part of a protocol class, 5) it is a parameter in an overload signature.

Bug Fix: Fixed incompatibility with pypy when retrieving import resolution paths from the configured Python interpreter.

Enhancement: Added diagnostic for __init__ method that does not have a return type of None.

Enhancement: Configuration settings can now be stored in a pyproject.toml file. If both pyproject.toml and pyrightconfig.json are both present, the latter takes precedent.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.