1.1.285
版本发布时间: 2022-12-21 16:23:12
microsoft/pyright最新发布版本:1.1.387(2024-10-30 09:17:48)
Enhancement: Implemented a new --level
command-line option that allows filtering of 'information' and 'warning' diagnostics.
Enhancement: Updated TOML parser to one that is compliant with the TOML 1.0 spec.
Enhancement: Added logic to detect uses of PEP 604 |
syntax that generate exceptions due to runtime limitations. In particular, if one of the operands is a string (i.e. a forward reference) and the other is also a string or a class that is not explicitly specialized, this will result in an exception.
Bug Fix: Fixed recent regression in completion provider that resulted in garbled type information for a symbol that is declared as a function (using a def
statement) but transformed into a non-function type using a decorator.
Bug Fix: Fixed a bug that resulted in a false positive error when an index expression with a numeric literal subscript was used in a loop that included a del
statement targeting the same index expression.
Behavior Change: Modified the overload matching algorithm to match the behavior of mypy when the overload match is ambiguous because an argument evaluates to Any
or Unknown
. In this case, the call expression evaluates to Unknown
. Previously, pyright used the first of the matching overloads in this case.
Bug Fix: Fixed a bug that led to extremely long type analysis times when determining type compatibility between an recursive type alias and a recursive protocol.
Bug Fix (contribution from @parched): Fixed recent regression that caused reportImportCycles diagnostic reporting to no longer work.
Bug Fix: Fixed a bug that resulted in a false positive error when a property setter or deleter contained function-scoped type variables.