npm pyright 1.1.160
Published 1.1.160

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

Enhancement: Updated the "type(x) is y" type narrowing logic to handle the negative case when the class type is "final".

Bug Fix: Fixed bug that prevented "rename symbol" from working when in single-file mode. Rather than failing, it will now perform a rename only within a single file.

Enhancement: Updated typeshed stubs to the latest version.

Bug Fix: Fixed false positive that occurs when defining an abstract dataclass and one of its fields refers to the class itself in its type annotation.

Bug Fix: Fixed bug in x is None type narrowing logic when x was typed as object.

Bug Fix: Fixed bug that verified that a protocol class used within an isinstance call is runtime_checkable. It was skipping this check when the first argument to isinstance was an Any or Unknown type.

Bug Fix: Fixed bug where a union of Literal[False] and Literal[True] were being coalesced into bool inappropriately in the case where they were conditional types that came from a constrained TypeVar.

Bug Fix: Removed the assumption that all top-level modules in typeshed third-party stubs are unique. The typeshed folder structure allows multiple packages to have the same top-level module.

Bug Fix: Fixed bug in the handling of generic recursive type aliases.

Enhancement: Implemented support for new Python 3.10 dataclass features: kw_only parameter for dataclass and field and KW_ONLY separator.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.