1.1.289
版本发布时间: 2023-01-14 14:30:05
microsoft/pyright最新发布版本:1.1.387(2024-10-30 09:17:48)
Bug Fix: Fixed a bug that resulted in incorrect type evaluation for a callable attribute within a TypedDict or dataclass. If the attribute has no type annotation, it should be treated as a class variable, not an instance variable.
Bug Fix: Fixed a bug that causes incorrect interpretation of a large integer literal value — one that doesn't fit within a 53-bit mantissa.
Bug Fix: Fixed a bug in the truthy/falsy type guard logic when using self
(or another bound TypeVar) where the bound class implements a __bool__
method.
Bug Fix (from pylance): Fixed a bug in vscode-languageserver client that caused bogus cancellation assertion.
Bug Fix: Fixed bug in dataclass_transform
logic for frozen_default
. If the frozen_default
is set to True
, it wasn't possible to override it with False
explicitly.
Bug Fix: Fixed bug that resulted in a false positive error when using the |
operator to combine two set
objects.
Bug Fix: Fixed a bug that resulted in an infinite loop when tuple addition was used within a loop construct.
Bug Fix: Fixed bug that led to a false positive when using method-scoped type variables in a type annotation for a cls
parameter in a classmethod.
Enhancement: Added a new check for a TypeGuard or StrictTypeGuard function that does not have at least one input parameter.
Bug Fix: Fixed a bug that resulted in a false negative when bidirectional type inference was used for a list expression and a list entry with an incompatible type is present.
Enhancement: Updated typeshed stubs to the latest version.
Enhancement: Added support for x[K] is V
and x[K] is not V
type narrowing forms.
Enhancement: Added support for the tentatively-accepted PEP 649 (deferred evaluation of annotations) in Python 3.12.
Bug Fix: Fixed a bug that resulted in a crash within the document symbol provider when a "naked" decorator is present.
Enhancement: Added provisional support for draft PEP 702 (marking deprecations using the type system).