1.1.281
版本发布时间: 2022-11-23 12:27:36
microsoft/pyright最新发布版本:1.1.387(2024-10-30 09:17:48)
Enhancement: Improved parse recovery for ternary expressions that are missing an else
or a post-else expression.
Enhancement: Changed the implicit declared type of a module-scoped doc to be str
instead of str | None
when a docstring is present at the top of the module.
Bug Fix: Fixed a bug that resulted in incorrect type evaluation when dealing with a union of an unpacked TypeVarTuple.
Bug Fix: Fixed bug that resulted in incorrect type evaluation when dealing with a union of an unpacked TypeVarTuple.
Bug Fix: Fixed a bug that resulted in incorrect type evaluation when applying a solved unpacked TypeVarTuple in a Union.
Bug Fix: Fixed a bug that resulted in a false positive during protocol matching for a protocol that includes a property with a getter whose self
parameter is annotated with a TypeVar.
Bug Fix: Fixed a bug that resulted in sporadic type evaluation errors when a quoted (forward-declared) type was used in a statement with an explicit PEP-613 TypeAlias
annotation.
Bug Fix: Fixed bug that resulted in false positive errors when doing protocol matching for a recursive protocol definition. I needed to increase an internal recursion limit to support this.
Enhancement: Updated typeshed stubs to the latest.
Bug Fix: Fixed regression that resulted in errant reportMissingImports
diagnostics within stub files.
Enhancement: Improved parse recovery when a suite contains an unexpected indent followed by a dedent that restores the indentation to that of the suite's body.
Bug Fix: Fixed a bug in the evaluation of the "with" statement that resulted in a false positive error when a class implements a context manager via its metaclass.
Bug Fix: Fixed a bug that led to a false positive error when validating the variance of type parameters for a protocol class when a covariant type parameter is used in a return type in the form type[T_co]
.
Bug Fix: Fixed a bug that resulted in a false positive error when using a cast
to a TypeVar.
Bug Fix: Fixed a bug in the type evaluator that could lead to unsolved TypeVars if used in a Callable parameter.
Bug Fix: Fixed recent regression that led to false positive reportUnnecessaryCast
diagnostics.