Published 1.1.63
Enhancement: Diagnostic rule severity overrides are now editable in the VS Code settings UI.
Bug Fix: Fixed out-of-memory error that occurred during a workspace "find symbols" operation. We were not properly checking for the heap high watermark during this operation.
Enhancement: Added support for special type "Counter" exported by typing module, which is an alias for collections.Counter.
Bug Fix: Fixed bug in bidirectional type inference for dictionary statements. The logic was not allowing for dict subclass Mapping.
Enhancement: Improved type checker's handling of "in" operator. It previously flagged an error if the right operand didn't support a __contains__
method. It now properly checks for iterable types as well.
Bug Fix: Fixed bug that caused incorrect evaluation of symbol types within a chain of assignments (e.g. "a = b = c = 4") in some cases.
Enhancement: Enabled file watcher for libraries to detect changes in installed packages. This behavior is already standard for Pylance, but it was disabled for Pyright.
Enhancement: Improved handling of Tuple type. The type checker now does a better job retaining the types of the individual elements within a Tuple or a class that derives from a Tuple.
Enhancement: Improved support for NamedTuple classes and classed derived from NamedTuple. The type checker now retains types of individual elements when used with unpacking and indexing operators.
Behavior Change: Changed "find workspace symbols" to return only symbols from within user code or opened files, not library files that are closed.
Bug Fix: Fixed recent regression that caused incorrect errors to be generated in sub files for certain call expressions.
New Feature: Added support for Concatenate as described in latest version of PEP 612. Added ParamSpec and Concatenate to typing.pyi.