github microsoft/pyright 1.1.40
Published 1.1.40

latest releases: 1.1.362, 1.1.361, 1.1.360...
3 years ago

Enhancement: Completion provider now supports auto-import for modules rather than just symbols within modules (i.e. "import X" form in addition to "from X import Y").

Bug Fix: Fixed bug that caused type guards not to work properly in some cases where an assignment expression (walrus operator) was used within the conditional statement and the value assigned to the target symbol involved a function call.

Bug Fix: Fixed bug that caused "|" operator used with variables of type "Any" to be incorrectly interpreted as union syntax.

Enhancement: If the pythonPlatform or pythonVersion are not specified, they are now initialized based on the current platform and configured python interpreter.

Bug Fix: Fixed bug that incorrectly flagged as an error some usage of a named exception symbol within an except clause.

Bug Fix: Changed logic for tracking incomplete types within the code flow engine. This fixes a bug in code flow analyzer that caused false positive errors to be reported in some cases involving loops.

Enhancement: Added localization mechanism for strings used in diagnostic messages and code actions. Strings are not yet localized, but this sets the stage for future improvements.

Bug Fix: Fixed bug that caused incorrect translation of a file offset to a line/col if the position was after the last character in the file. If a diagnostic range covered this final character, it was shortened by one character.

Enhancement: Diagnostics for reportUnknownParameterType rule are now suppressed if the parameter is named "_".

Bug Fix: Fixed bug in reportUnnecessaryIsInstance rule that triggered an inappropriate error when the target class was derived from a base class that was unknown (e.g. due to an import resolution failure).

Don't miss a new pyright release

NewReleases is sending notifications on new releases.