Releases: microsoft/pyright
Published 1.0.45
New Feature: Added support for multi-root workspaces.
Bug Fix #167: Fixed bug in parsing of f-string expressions.
Published 1.0.44
New Feature: Type analyzer now infers a function return type of "NoReturn" if function doesn't return any value and always raises an exception. Methods marked @AbstractMethod are exempt. An explicit return type annotation always overrides this inference.
Bug Fix: Fixed logic for try/except/else/finally statements to properly handle code flow analysis. The previous implementation was incorrectly identifying unreachable code.
Bug Fix: Type analyzer wasn't correctly inferring type of set when a set comprehension was used.
Published 1.0.43
Enhancement: Improved handling of ellipsis.
Bug Fix: Fixed bug that resulted in constant redefinitions not to be flagged as errors if the original assignment had an explicit type annotation.
Bug Fix: Fixed bug that caused type completions to appear within certain string tokens.
Bug Fix: Allow generic type (e.g. Type[T]) to be used as the annotation for a callable parameter or variable.
Published 1.0.42
New Feature: Support for callback protocols, as specified in PEP 544
New Feature: Class and function decorators now preserve generic functions rather than specializing them.
Bug Fix: Fixed bug in file system watch logic for config file. It was not detecting the case where the config file was deleted and recreated, as happens when switching branches in git.
Bug Fix: Normalize the root directory path provided by node so Windows command-line tool can find the typeshed fallback path.
Bug Fix: Type checker now preserves "Any" type for iterators, with statements, etc. rather than turning them into "unknown" types, which are reported in strict mode.
Published 1.0.41
New Feature: Updated implementation of reportPrivateUsage check to differentiate between protected class members (single underscore) and private class members (double underscore).
Bug Fix: Untyped function or class decorator was not fully evaluated, so arguments passed to the decorator were not marked as accessed.
Bug Fix: Slice operator should accept None as argument.
Bug Fix: Add missing declared type for "self" or "cls" parameters in methods so the hover provider reports the correct inferred type.
Published 1.0.40
New Feature: Support for f-strings
Bug Fix: Extraneous tokens in comment-style annotations were not previously reported as an error
Published 1.0.39
New Feature: Added "strict" setting in config file. Files and directories that are specified in this array are analyzed with "strict" type checking rules.
Bug Fix #148: Removed check for private member declarations within dataclass. I originally misinterpreted the spec and added this check in error.
Bug Fix: Fixed bug in parser. Chains of binary operations were not grouping correctly. They should group left to right, not right to left.
Published 1.0.38
New Feature: Added support for __future__
import annotations
, which tells the python interpreter not to evaluate annotations at runtime.
Bug Fix #145: Type analyzer was not properly handling the special-case built-in class "auto" defined in Enum.pyi.
Published 1.0.37
Bug Fix: Type checker was not validating the "from" clause of a "raise" statement.
Enhancement: Improved type checker performance by about 15%.
Published 1.0.36
Bug Fix #141: The VS Code extension no longer automatically analyzes all files under the project if there's no pyrightconfig.json file present. It still analyzes python files that are explicitly opened in the editor.
Bug Fix #140: Targets of a "raise" statement should be marked as "accessed" for the purposes of displaying unused code.
Bug Fix: Added support for iterable classes like Enum.
Bug Fix: Fixed bug that caused type checker to fail to report errors in cases where a class was being instantiated with incorrect parameters and the initializer method was overloaded.