Skip to content

Published 1.1.122

Compare
Choose a tag to compare
@erictraut erictraut released this 17 Mar 03:24

Bug Fix: Fixed false positive error in constructor method with an input parameter annotated with a class-scoped TypeVar and with a default value.

Enhancement: Improved performance of type analysis for certain code patterns that involve inferred types of variables that are used in deeply nested loops and chains of updates. In one such example, this change reduced the analysis time from ~17000ms to ~200ms.

Bug Fix: Fixed bug in the handling of the owner parameter for the __get__ method in a descriptor class. The type evaluator was using an Any type rather than the proper class type in this case.

Bug Fix: Updated TypeVar constraint solver so it tracks a "narrow bound" and "wide bound" for each TypeVar as they are being solved. This fixes several subtle bugs.

Enhancement: Updated typeshed stubs to the latest.

Behavior Change: Added new top-level "extraPaths" config option for pythonconfig.json that specifies the default extraPaths to use when no execution environments apply to a file. Changed settings logic to use the new default extraPaths mechanism for the "python.analysis.extraPaths" setting.

Bug Fix: Fixed bug related to the handling of from . import X statement located in a file other than __init__.py. When used outside of an __init__.py file, this import looks for the __init__.py and imports the requested symbol X from it rather than looking for a submodule X.

Enhancement: Improved completion provider's handling of method overrides so it properly handles properties.

Enhancement (from pylance): Add lowercased items from __all__ in auto-imports.

Bug Fix: Fixed bug in constraint solver that occurs when a constrained TypeVar is used in conjunction with a protocol that has a contravariant TypeVar.