Enhancement: Updated to the latest typeshed stubs.
Bug Fix: Fixed bug in fstring parser that generated "unexpected token at end of string" errors if fstring debug (introduced in Python 3.8) was used in conjunction with string-formatting syntax and there was no space between the "=" and the ":".
Bug Fix: Fixed bug that caused a spurious error when defining a property setter when the property getter had no declared return type.
Bug Fix: Fixed bug in isinstance narrowing logic where it didn't properly preserve a TypeVar in the negative ("else") case.
Bug Fix: Fixed bug in type narrowing logic for member access expressions like "a.b.c". A narrowed type needs to be abandoned if any part of the expression is reassigned (e.g. a.b = ).
Bug Fix: Fixed bug that resulted a "Never" type appearing as a type argument in an inferred function return type. "Never" should never be used as a type argument. It is now replaced by "Unknown" if it ever does appear.
Bug Fix: (from pylance): Fixed completion case where the completion item said one method, but hover said another once inserted.
Bug Fix: (from pylance): Reuse existing imports for auto-imports (e.g. if import os.path
is present, join
will use os.path.join
).