Skip to content

Published 1.1.90

Compare
Choose a tag to compare
@erictraut erictraut released this 01 Dec 00:47

Enhancement: Added support for type() call when argument contains a generic class instance.

Enhancement: Improved reportIncompatibleMethodOverride diagnostic check for property overrides. It now checks for missing fget, fset, fdel methods and the overridden method types for each of these.

Enhancement: Added special-case handling of overloaded __init__ methods where the self parameter contains an annotation with a specialized version of the class. This is used in some typeshed stubs to influence the constructed object type when no additional information is available.

Bug Fix: Fixed bug in parser that resulted in incorrect errors when an unpack operator was used within an f-string expression.

Bug Fix: Fixed bug that resulted in incorrect errors when matching synthesized "cls" parameter type. This bug generally affected all TypeVars that were bound to a Type.

Enhancement: Improved type checking support for constrained TypeVars within function and class bodies. This was a significant change, so there's some risk of regressions or new false-positive errors. Please report any bugs you see.