Bug Fix: Fixed bug that results in a false positive error when evaluating type compatibility of a callable with a *args: Any
and **kwargs: Any
parameter with a callable that contains a ParamSpec.
Behavior Change: Exempted class members named _
from the "reportIncompatibleMethodOverride" diagnostic check.
Bug Fix: Fixed bug that resulted in missing docstrings on an overloaded method when accessed through a member access expression.
Bug Fix (from Pylance): Auto-import should include import aliases from libraries.
Bug Fix: Fixed a bug that resulted in a false negative when performing protocol matching for a class instance when invariance is enforced.
Enhancement: Added support for overloaded functions that return a TypeGuard
or StrictTypeGuard
for some overloads.
Bug Fix: Changed heuristics in TypeVar constraint solver to handle a TypeVar bound to LiteralString
and allow literal types to be retained when solving for this TypeVar.
Enhancement: Updated typeshed stubs to the latest version.
Bug Fix: Fixed a bug that resulted in a false negative when assigning a union of tuple[Any] | tuple[int]
to an incompatible type.