Skip to content

Published 1.1.201

Compare
Choose a tag to compare
@erictraut erictraut released this 28 Dec 21:28
· 3527 commits to main since this release

Enhancement: Added code to detect except clauses that are unreachable because their exception types are already handled by previous except clauses.

Enhancement: Added type validation for custom metaclass keyword parameters specified in the metaclass's __new__ method.

Enhancement: Added type validation logic for dataclass __post_init__ method.

Bug Fix: Fixed bug that results in false positive error when class declaration arguments are evaluated out of order.

Enhancement: Updated typeshed stubs to the latest version.

Enhancement: Added support for Required and NotRequired type annotations in alternative syntax form of TypedDict.

Behavior Change: Changed overload implementation consistency check so it doesn't require the implementation to include a NoReturn if one of the overload signatures returns a NoReturn.

Bug Fix: Fixed a bug that resulted in a false positive in the overlapping overload check, specifically when a later overload used a type variable in a parameter annotation.

Enhancement: Added type checking support for functools.total_ordering.