Published 1.1.117
Enhancement: Extended check that detects redeclared functions and methods to also report redeclared properties within a class.
Bug Fix: Fixed crash in parser that occurs when malformed index expression is parsed.
Enhancement: Improved error message for certain type incompatibilities.
Bug Fix: Fixed bug in logic that determines whether a function type is assignable to another function type. It was not properly handling the case where the destination had a **kwargs parameter and the source had an unmatched keyword parameter.
Enhancement: Added new check to ensure that the type signature of a function with overloads is the superset of all of its overload signatures.
Enhancement: Improved consistency of error messages by standardizing on "incompatible" rather than "not compatible".
Bug Fix: Fixed bug in handling of type(x)
call that resulted in false positive errors.
Behavior Change: Changed the logic that determines whether a variable assignment is an implicit type alias definition. If there is an explicit type annotation (other than the use of the PEP 612 TypeAlias), it is no longer considered a type alias. This is consistent with the rules mypy uses.
Bug Fix: Fixed a bug in the logic for inferring "cls" parameter that resulted in incorrect type evaluations.
Enhancement: Added check to detect inappropriate use of variables (that are not type aliases) within type annotations.
Bug Fix: Fixed bug in type compatibility logic that permitted a type of Type[Any]
to be assigned to type None
.
New Feature: Implemented support for PEP 655: Marking individual TypedDict items as required or potentially-missing. This PEP is still under development, so the spec could change.