Bug Fix: Improved type narrowing logic for a is b
pattern where a
is self
(or a bound TypeVar) and b
is an enum literal.
Bug Fix: Updated reportIncompatibleMethodOverride diagnostic check to special-case dict key names that overlap with method names in the _TypedDict
class.
Bug Fix: Improved handling of attribute accesses for classes that inherit from Any
or an unknown class.
Enhancement: Added optimization that reduces the time it takes to perform code flow analysis in the presence of if/elf/else statements, try statements, with statements, and ternary expressions.
Bug Fix: Fixed bug that caused false positive when a bound TypeVar is bound to an instantiable class (e.g. Type[X]).