Pyright

Latest version: v1.1.390

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

Scan your dependencies

Page 70 of 81

1.0.64

Enhancement: Added check within type checker to emit an error when code attempts to assign a value to a generic type (e.g. "Dict[str, str] = {}").

Enhancement: Implemented support in type checker for Python's "comparison chaining" feature (e.g. "3 < a < 4").

Enhancement: Augmented static expression evaluation to handle "and" and "or" expressions.

Bug Fix: Fixed a bunch of misspellings in error and warning text.

Bug Fix: Fixed a bug in the auto-complete feature that caused new import symbols to be inserted in the wrong place if the previous symbol (alphabetically) had an "as" clause.

Bug Fix: Fixed a bug in the auto-complete feature that caused bad performance for really large code bases.

1.0.63

Enhancement: Added support for constraining the type of the RHS of an assignment statement based on the expected type of the LHS.

Enhancement: Suppressed return type check for functions whose implementations consist only of "...".

Enhancement: Changed heuristic about whether to strip literal values from inferred class or instance member type. If it's not a constant or private member, I now use the more general type (not the literal).

Bug Fix: Changed tuple type expression evaluation to retain literals rather than strip them.

Bug Fix: Fixed recursion check that caused stack overflow during type evaluation.

Bug Fix: Removed assumption in type stub generation logic that `__all__` assignment would appear after all imports in the file.

1.0.62

Enhancement: Improved responsiveness of language services in VS Code extension.

Enhancement: Made a number of significant performance improvements in type analyzer. Some of these required major internal changes to the type engine, so there's a higher-than-normal risk of regressions.

Enhancement: Made improvements to type completion suggestions for import symbols.

Bug Fix: Added support for dataclass inheritance hierarchies.

1.0.61

New Feature: Added workspace symbol provider (command-T in VS Code) that allows for global symbol searches across the entire project.

New Feature: Diagnostic output (errors and warnings) now include the name of the rule that generated the diagnostic.

New Feature: Added support for mypy "reveal_type" call.

Enhancement: Allow use of unions of generic class types.

1.0.60

New Feature: Added "Add 'Optional'" quick action for default initialization of None.

Enhancement: A bunch of performance enhancements, leading to a ~20% perf improvement for the type analyzer.

Enhancement: Removed two-character limit on auto-import completions based on feedback.

Enhancement: Added support in auto-import feature for implicit imports.

Enhancement: Eliminated reportUnnecessaryIsInstance error reporting for expressions within assert statement.

Bug Fix: Added handling of Unicode BOM (byte order market) at start of file.

1.0.59

Bug Fix: Fixed issue with inaccessible code detection relating to the use of a break statement within a try block.

Enhancement: Changed "Organize Import" feature to separate out relative imports into their own (fourth) group.

New Feature: Added a "reportUnnecessaryCast" switch that detects calls to `cast` that are unnecessary.

Page 70 of 81

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.