Skip to content

Published 1.1.385

Compare
Choose a tag to compare
@bschnurr bschnurr released this 16 Oct 04:23

Bug Fixes:

  • Fixed bug that leads to a false positive error when using Literal[] in a value expression (not a type expression) with an unpack operator.
  • Fixed a recent regression that results in a false positive in cases where a dataclass field has a default value where the expression requires bidirectional type inference for proper type evaluation.
  • Fixed recent regression that results in a false negative when calling a constructor for a class with a custom metaclass with a __call__ method that has an unannotated return type if the arguments passed to the constructor are incorrect.
  • Fixed bug that results in a false positive when a NamedTuple field uses ... as a default value in a stub file.
  • Fixed recent regression that leads to a false positive error when assigning a generic method within a class body.
  • Fixed recent regression that results in a false negative when calling a function with an *args parameter annotated with an unpacked tuple.
  • Fixed bug that results in false positive error when a dataclass field is annotated with a class-scoped type variable and includes a default value whose type require bidirectional type inference.
  • Fixed bug that results in incorrect type evaluation and a false negative when accessing an attribute through a TypeVar with an upper bound.
  • Fixed bug that results in false positive error regarding a __bool__ method for a value used in an operand for an or or and operator.

Enhancements:

  • Added check for alias keyword argument in a dataclass_transform field definition call to ensure that it's a valid Python identifier.