1.1.264
版本发布时间: 2022-07-27 08:59:27
microsoft/pyright最新发布版本:1.1.387(2024-10-30 09:17:48)
Bug Fix: Fixed bug in reportUnnecessaryContains
check that resulted in a false positive when the container element type is a TypeVar. The same logic error was present (and fixed) in the type narrowing logic for in
expressions.
Bug Fix: Fixed bug in reportUnnecessaryComparison
check that results in a false positive error when comparison chaining is used.
Bug Fix: Fixed bug that resulted in a false positive error when using a TypedDict that has been narrowed via an assignment to a not-required key.
Bug Fix: Fixed a bug that resulted in incorrect type inference for unannotated parameters with a default argument value in an __init__
method.
Enhancement: Added support for _generate_next_value_
override for Enum
class.
Bug Fix: Fixed a bug in the type printer code that resulted in an infinite recursion and crash.
Behavior Change: Changed reportUninitializedInstanceVariable
check to exempt protocol classes.
Bug Fix: Fixed a bug that resulted in infinite recursion and a crash when inferring return types for functions that returned another function that also has an inferred return type, etc. in a cycle.