Releases: microsoft/pyright
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.
Published 1.0.35
New Feature: Added "Find References" functionality to VS Code extension. You can now right click on a symbol and choose "Find All References" (or press option-shift-F12) to display all uses of the symbol within the code base.
Bug Fix: Fixed type constraint logic for assert statements that provide a message string parameter.
Published 1.0.34
New Feature: Implemented "signature help" in VS Code extension that provides detailed signature information as popup text when adding parameters to a call.
New Feature: Added doc string support for modules, classes, methods, and functions. These are now displayed when you hover over a symbol.
Enhancement: Improved formatting for hover text in VS Code extension.
New Feature: Type completion support in VS Code extension for imports and import symbols.
New Feature: Reporting of unused symbols imported using "import X from Y" statements.
Published 1.0.33
New Feature: Added support for new config options: reportUnusedImport, reportUnusedClass, reportUnusedFunction, and reportUnusedVariable.
New Feature: Added support for Enum functional declarations.
Bug Fix #134: Fixed bug where index into an enum type was generating a false positive error.
Bug Fix: Improved responsiveness of VS Code Extension during analysis.
Bug Fix #135: Fixed bug that resulted in false positive error being generated for __init__
calls in a base class.
Bug Fix: Fixed bug in path processing that caused VS Code Extension to report errors with corrupt file paths when the pyrightconfig.json file "include" array was empty.
Bug Fix: Fixed bug that caused symbols used as indexes not to be marked as "accessed" for purposes of highlighting unaccessed variables.
Bug Fix: Module-level variables (non-imports) and class-level variables should be marked as "not accessed" only if they're private (start with underscore).
Published 1.0.32
Bug Fix #133: Add support for class keyword arguments
Bug Fix: Add support for qualname on classes