Skip to content

Releases: microsoft/pyright

Published 1.0.35

29 May 01:35
Compare
Choose a tag to compare

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

28 May 02:27
Compare
Choose a tag to compare

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

24 May 23:34
Compare
Choose a tag to compare

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

23 May 01:11
Compare
Choose a tag to compare

Bug Fix #133: Add support for class keyword arguments
Bug Fix: Add support for qualname on classes

Published 1.0.31

21 May 17:30
Compare
Choose a tag to compare

New Feature: Added more flexible file-level overrides for config settings. You can now specify individual config settings in a #pyright comment. See documentation for more details.

Published 1.0.30

21 May 17:14
Compare
Choose a tag to compare

Bug Fix #132: Fixed code flow logic used for try/except/else statements so it properly handles returns from all paths.
Bug Fix: Fixed bug in type analyzer's handling of variables declared within methods that are cleared within an enum class.
Enhancement: Improved error reporting for arg type mismatches. Parameter name is now included in the error message.

Published 1.0.29

18 May 08:08
Compare
Choose a tag to compare

New Feature: Added logic to avoid unnecessary reanalysis of files when a file is deleted, added or renamed (e.g. when using git to switch between branches).
Bug Fix: Fixed bug in binary operator type checking that caused false positive errors.
Bug Fix: Fixed several bugs in path processing for include directories.

Published 1.0.28

17 May 03:34
Compare
Choose a tag to compare

New Feature: Added new config settings "strictListInference" and "strictDictionaryInference".
Bug Fix: Improved error reporting for union type mismatches.
Bug Fix #124: Fixed path/URI parsing logic for Windows that resulted in import failures.
Bug Fix: Fixed bug in type analyzer where it wasn't doing proper type variable matching in some cases.
Bug Fix: Exit code of 0 is reported if only errors (not warnings) are reported. Thanks to @HIGOSH for the contribution!

Published 1.0.27

12 May 04:13
Compare
Choose a tag to compare

New Feature: In the VS Code extension, added automatic detection and reporting of accessed local variables, parameters, imports, private methods and private class variables. They appear as "gray" in the editor.
New Feature: Entries defined in NamedTuple or namedtuple now work with the "show definition" feature in VS Code.
New Feature: Added "reportConstantRedefinition" feature, which reports any attempt to redefine a variable that is named in all-caps.
Bug Fix: Fixed code flow analysis bug relating to try/except/else statements.
Bug Fix #123: breakpoint function was being incorrectly excluded from the builtins namespace.

Published 1.0.26

11 May 06:22
Compare
Choose a tag to compare

New Feature: Added "reportIncompatibleMethodOverride" config switch for reporting method overrides that are incompatible with the base class.
New Feature: Changed VS Code extension to use the root execution path of the project as the implicit include if no other include file specs are provided.
New Feature: Added support for the TYPE_CHECKING variable defined in typing.pyi.
New Feature: Added "--version" switch to command line - contribution by Oleg Butuzov.
Bug Fix #120: An import within a conditional statement was being reported as an "unbound" variable.
Bug Fix: Fixed issue where strict type mode was resulting in an indication that a local variable was unknown in some loops.
Bug Fix: When filling in missing type arguments for a generic class, use the specialized version of the TypeVar rather than Any.
Bug Fix: A "break" statement within a conditional statement was not being propagated up to the loop scope, resulting in incorrect code flow analysis.
Bug Fix: Improved type combining logic - literals are now elided when combined with non-literal of the same type.