1.1.261
版本发布时间: 2022-07-16 23:43:51
microsoft/pyright最新发布版本:1.1.387(2024-10-30 09:17:48)
Behavior Change: Reduced the max code complexity constant to lower the cyclomatic complexity threshold for code analysis to prevent crashes with certain highly-complex code.
Bug Fix: Fixed regression that caused an internal assertion (and therefore a crash) when using an expression that includes two index expressions, one with a string literal and one without, like a[n].b.c['x']
.
Enhancement: Added support for overloaded __getitem__
in iterables for for
statements.
Enhancement: Enhanced the reportIncompatibleVariableOverride check to catch cases where a Final variable overrides a non-Final variable.
Bug Fix: Fixed bug that resulted in sporadic errors during type evaluation based on evaluation order.
Bug Fix: Fixed bug in constraint solver that led to a false positive error in some situations where the solution to a TypeVar involved the union of two other TypeVars.
Bug Fix: Fixed a bug that resulted in an incorrect type evaluation when a generic callable class variable was specialized recursively with type variables for the same class.
Bug Fix: Improved handling of type consistency checks for unions so the results are less dependent on the order of subtypes within the union.
Enhancement: Enhanced reportUnnecessaryTypeIgnoreComment
to ignore lines that are unreachable.