Skip to content

Published 1.1.87

Compare
Choose a tag to compare
@erictraut erictraut released this 20 Nov 03:49

Bug Fix: Fixed bug with type annotations that use a TypeVar with the new union syntax.

Behavior Change: Removed special-case code that eliminates a NoReturn from an async function.

Behavior Change: Changed behavior of NoReturn when it appears within unions. Previously, it was always filtered out of unions. It is now filtered out only in the inferred return type of a function. This allows NoReturn to be used in unions in other legitimate cases.

Bug Fix: Fixed bug that resulted in a false negative when a callable type with a kwargs parameter was assigned to a callable type without a kwargs or with a kwargs of a different type.

Enhancement (from Pylance): Changed fuzzy text matching algorithm for completion suggestions.

Bug Fix: Fixed bug whereby an assignment was not flagged as an error if the target type contains a type var and the source is concrete. This change generally makes the core type checker more strict about the use of type variables.

Enhancement: Added support for "eq" and "order" parameters in dataclass decorator as defined in PEP 557.

New Feature: Added new diagnostic rule "reportFunctionMemberAccess" that reports an attempt to access, set or delete non-standard attributes of function objects.