Enhancement: Improved error messages for expected TypeDicts. (Contribution from Sam Abey.)
Bug Fix: Fixed bug where an *args or **kwargs parameter could be specified by name in a function call.
Behavior Change: Changed behavior of kwargs parameter that has a generic (TypeVar) type annotation. Literals are now stripped in this case before assigning to the TypeVar.
Enhancement: Improved mechanism for overloaded __init__
method that uses self
parameter annotation to specify the result of a constructor. The new mechanism supports generic type arguments within the self
annotation.
Bug Fix: Fixed bug that caused sporadic errors when modifying the builtins.pyi stub file.
Bug Fix: Fixed bug with overlapping overload detection. It was reporting an incorrect overlap when a different TypeVar (bound vs unbound) was used in two overloads.
Bug Fix: Fixed another false positive error related to overlapping overload methods with a TypeVar in a parameter annotation.
Bug Fix: Fixed bug that caused internal stack overflow when attempting to assign a class to a protocol that refers to itself.
Enhancement: Improved support for protocol matching for protocols that include properties. Getter, setter and deleter methods are now individually checked for presence and type compatibility, and generics are now supported.
Enhancement: Updated to latest typeshed stubs.