Skip to content

Published 1.1.157

Compare
Choose a tag to compare
@erictraut erictraut released this 16 Jul 17:25
· 4169 commits to main since this release

Bug Fix: Fixed false positive error when calling an object that has an Any in its inheritance chain.

Enhancement: Improved support for callable type narrowing in cases where the type is a non-callable instance, but a subtype could be callable.

Enhancement: Improved handling of callable type narrowing when the type involves a constrained type variable.

Enhancement: Added support for ParamSpec's within a Protocol, which is supported in Python 3.10.

Enhancement: Improved handling of isinstance type narrowing logic when the type being narrowed is a callable.

Bug Fix: Fixed recent regression in type evaluator that occurs when a generic (non-specialized) type is assigned to another generic type and the type parameter(s) for the generic type are invariant.

Bug Fix: Fixed bug that caused diagnostics from an open file not to be cleared after closing that file if it was not saved.

Enhancement (from pylance): Improved completion suggestions for literals when used as dictionary keys.

New Feature: Implemented "reportUninitializedInstanceVariable" diagnostic check that looks for instance variables that are not initialized in the class body or constructor.

Bug Fix: Fixed false positive error due to bug in constraint solver related to the handling of Type[T] when T is a constrained type variable.

Bug Fix: Fixed false positive error related to the use of a recursive type alias when from __future__ import annotations was in effect.

Bug Fix: Fixed false negative related to augmented assignment expressions when operand was a union type and a subset of the union subtypes were not supported for the operation.