Bug Fixes:
- Fixed regression that results in the incorrect type evaluation for the
value
attribute of aStrEnum
orIntEnum
class. - Fixed a bug that results in incorrect type compatibility checks for a callable that uses
*args: *tuple[T, *tuple[S, ...]]
. - Fixed a bug that results in an unsolved TypeVar when calling
list(tuple())
. - Fixed bug that leads to inconsistent narrowing-on-assignment behavior when a
tuple
instance with unknown type arguments is assigned to a target symbol with a declaredtuple
type. - Fixed bug that results in a false negative when a
Final
class variable is assigned a value in the class body and reassigned a value in the__init__
method.
Behavior Changes:
- Changed tuple expression inference behavior to not preserve literal entry types if the tuple expression is embedded within another tuple, set, list, or dictionary expression.
- [Contribution by @ujan-r] Use typeshed version info for stdlib module list.
Enhancements:
- Improved diagnostic messages for parameter mismatch.
- Added support for configuration inheritance through an "extends" configuration option.
- Added support for custom ".toml" files specified via the
-p
option on the command line.