Pyright

Latest version: v1.1.390

Safety actively analyzes 685838 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 68 of 81

1.0.76

Bug Fix: Fixed Windows-specific path processing bug.

Bug Fix: Fixed bug that caused "import cycle" errors to persist even after they were corrected.

1.0.75

Enhancement: Added support for bidirectional type inference for assignments where the LHS is an indexed expression.

Bug Fix: Switched to a new file system watching mechanism so "--watch" works correctly on Linux.

Bug Fix: Fixed recent regression that caused errors to be reported incorrectly after editing a dependent source file.

1.0.74

New Feature: Added support for Python 3.8 assignment expressions (aka walrus operator).

Enhancement: Bumped latest stable build of python from 3.7 to 3.8, so the latter is now the default setting for pyright.

Enhancement: Added verbose logging for file system watchers.

Enhancement: Improved robustness of code that invokes the local python interpreter to query for paths. Thanks to Rami Chowdhury for the contribution.

1.0.73

Enhancement: Exposed WindowError from builtins.pyi file.

Enhancement: Added overload definitions for built-in "open" function so it distinguishes between Io[str] and Io[bytes] if the provided mode argument is a string literal.

Bug Fix: Added support for metaclasses when using magic function lookups. This allows classes, for example, to be used in binary operation expressions.

Bug Fix: Fixed recent regression in "Organize Imports" feature that caused incorrect ordering of imports.

Bug Fix: Fixed issue that caused sporadic type checker errors to be reported when editing or opening certain files within a workspace.

1.0.72

New Feature: Added support for Python 3.8 "position-only parameters".

Bug Fix: Enum classes are now properly treated as iterable types.

Bug Fix: Fixed several bugs in typestub generation feature, some of which resulted in crashes or out-of-memory errors.

1.0.71

Enhancement: Changed TypeVar matching to perform type expansion. Removed hack __init__ overload for dict class that was required because we weren't performing type expansion.

Enhancement: Used aggressive bundling and minification to reduce the VS Code download size by over 50%. Shaved 200ms (80%) off its startup time.

Bug Fix: Fixed a case where a Union type alias (e.g. A = Union[T, B[T]]) was not being handled properly.

Bug Fix: Fixed issue where non-type-stub files were imported and analyzed if they were within a directory with an __init__.pyi file.

Bug Fix: Added code to suppress all analysis and errors of third-party code files.

Bug Fix: Fixed issue where certain types that were already specialized were re-specialized, overwriting the previous type arguments.

Page 68 of 81

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.