Pyright

Latest version: v1.1.390

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

Scan your dependencies

Page 73 of 81

1.0.46

Bug Fix: Fixed regression that caused crash in VS Code extension for some users. The regression was introduced as part of the new multi-root workspace support.

1.0.45

New Feature: Added support for multi-root workspaces.
Bug Fix 167: Fixed bug in parsing of f-string expressions.

1.0.44

New Feature: Type analyzer now infers a function return type of "NoReturn" if function doesn't return any value and always raises an exception. Methods marked abstractmethod are exempt. An explicit return type annotation always overrides this inference.
Bug Fix: Fixed logic for try/except/else/finally statements to properly handle code flow analysis. The previous implementation was incorrectly identifying unreachable code.
Bug Fix: Type analyzer wasn't correctly inferring type of set when a set comprehension was used.

1.0.43

Enhancement: Improved handling of ellipsis.
Bug Fix: Fixed bug that resulted in constant redefinitions not to be flagged as errors if the original assignment had an explicit type annotation.
Bug Fix: Fixed bug that caused type completions to appear within certain string tokens.
Bug Fix: Allow generic type (e.g. Type[T]) to be used as the annotation for a callable parameter or variable.

1.0.42

New Feature: Support for callback protocols, as specified in [PEP 544](https://www.python.org/dev/peps/pep-0544/#callback-protocols)
New Feature: Class and function decorators now preserve generic functions rather than specializing them.
Bug Fix: Fixed bug in file system watch logic for config file. It was not detecting the case where the config file was deleted and recreated, as happens when switching branches in git.
Bug Fix: Normalize the root directory path provided by node so Windows command-line tool can find the typeshed fallback path.
Bug Fix: Type checker now preserves "Any" type for iterators, with statements, etc. rather than turning them into "unknown" types, which are reported in strict mode.

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.

Page 73 of 81

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.