Bug Fix: Fixed false negative when PEP 585 type is used in a type alias or other cases where postponed evaluation is not possible.
Bug Fix: Fixed regression that resulted in error when "match" is used in expressions but is mistaken for a pattern-matching statement.
Bug Fix: Fixed schema for "python.analysis.logLevel" setting. The default value was specified incorrectly. Thanks to Rafał Chłodnicki for this fix.
Bug Fix: Fixed a bug that caused a false positive when a TypeVar is bound to a generic protocol class.
Bug Fix: Fixed a bug that caused a false positive when a boolean operator was applied to a type variable and the corresponding magic method used an explicit type annotation for the "self" parameter.
Enhancement: Added a new diagnostic check for out-of-range indexes for tuples that have known lengths.
Enhancement: Added limited support for negative type narrowing in pattern matching. For example, if the type of the subject expression is bool and the matching pattern is False | x
, the type of x
will be inferred to be True
.
Bug Fix: Fixed bug that affected generic type aliases that contained Callable types that are parameterized by a type variable.
Enhancement: Extended abstract method checks to Protocol classes even though they don't explicitly derive from ABCMeta.
Bug Fix: Fixed bug in type narrowing for class patterns in "case" statements.