npm pyright 1.1.51
Published 1.1.51

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

New Feature: Added document highlight provider. When you click on a symbol in the editor, all other symbols within the same file that have the same name and have the same semantic meaning are also highlighted.

Enhancement: If reportGeneralTypeIssues rule is disabled, don't replace assigned type with declared type because it will lead to additional errors that will confuse users.

Enhancement: Added type narrowing support for "in" operator when RHS is a specialized list, set, frozenset, or deque.

Enhancement: Added logic to validate that RHS operand used with "in" and "not in" operators support the __contains__ magic method.

Bug Fix: Fixed bug where "field" initialization of dataclass member didn't take into account "default" or "default_factory" parameters when determining whether the field had a default value.

Bug Fix: Added code to deal with the special case where a method declared with a "def" statement is later overwritten with a callable instance variable.

Bug Fix: Fixed bug whereby a TypeVar type was not treated the same when it was alone versus within a union leading to some subtle differences in error reporting. Also changed specialization of constrained TypeVars to be a union of constrained types rather than Unknown if the TypeVar is not used as a type argument.

Bug Fix: Fixed bug in diagnostic message for constrained TypeVar type mismatch. The wrong type was being printed leading to confusing errors.

Bug Fix: Fixed a bug that caused incorrect linearization of classes during MRO calculation.

Bug Fix: Fixed bug in synthesized version of get method for TypedDict class. It should provide an overload that allows for any str key and return an "Unknown" type.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.