Skip to content

Published 1.1.192

Compare
Choose a tag to compare
@erictraut erictraut released this 03 Dec 02:27
· 3652 commits to main since this release

Enhancement: Sped up "find reference" by performing a quick text search for the reference symbol and avoiding additional work for that file if there is no chance of finding a reference within it.

Bug Fix: Fixed misleading error message involving a type mismatch within the TypeVar constraint solver. The source and destination types were reversed.

Bug Fix: Fixed a bug in ternary expression type evaluation that resulted in a false positive error. It was not properly handling the case where the condition was statically determined to be false or true.

Enhancement: Improved error message for unknown or partially-unknown type arguments in package type verifier.

Bug Fix: Added missing check in package type verifier for generic type aliases with missing type arguments.

Bug Fix: Fixed bug that resulted in false positive error when a __new__ method has its own type variables that are not scoped to its corresponding class.

Bug Fix: Changed behavior of symbol resolution involving a quoted (forward-declared) type annotation that references a symbol in the global (module) or builtins namespaces. The previous implementation didn't match the runtime behavior of typing.get_type_hints.

Bug Fix: Improved heuristics that are intended to choose the simplest type when more than one solution is possible for a set of type variables.

Enhancement: Added support for class-based definition of "NewType", which will appear in a new version of typeshed stubs soon.

Bug Fix: Added missing check in function type compatibility checks for the case where the source type contains position-only parameters but the destination type does not.

Bug Fix: Added support for synthesized __hash__ method for dataclass and dataclass_transform.

Bug Fix: Fixed bug that resulted in false positive parse error when using "/" parameter in type stub when pythonVersion was prior to Python 3.8.