Bug Fix: Fixed false positive error when assigning type T | Any
to type T
.
Behavior Change: Changed Callable
special form to include a position-only marker at the end of the parameter list. Changed type printer to omit the /
if it is unnecessary.
Behavior Change: Modified the check for function declaration redefinitions to allow for same-signature overrides in cases where the declarations are not within the same statement suite (e.g. one in the "if" and the other in the "else" block).
Bug Fix: Fixed missing diagnostic when a Self parameter was assigned to a Concatenate[X, P]
where X
is a type that is incompatible with Self
.
Bug Fix: Fixed bug that resulted in a false positive error when a specialized generic class with a __call__
method uses a ParamSpec and is assigned to a Callable
that is also parameterized with a ParamSpec.
Enhancement: Updated typeshed stubs to the latest.
Bug Fix: Fixed bug that resulted in hover text for symbols used within a default argument expression to sometimes be displayed as "Unknown".
Bug Fix: Fixed regression in handling of callback protocols that define a __name__
attribute, which is common to all functions.
Behavior Change: Added support for upcoming change in typing.pyi in the way that the NoReturn
symbol is declared.