Bug Fix: Fixed bug that resulted in incorrect type evaluation of a specialized type alias when the type argument contained a literal type. The literal was incorrectly widened to its non-literal form.
Bug Fix: Fixed bug that resulted in the incorrect type evaluation of member access expressions where the base type is type(None)
(i.e. the NoneType
class).
Enhancement: Enhanced the reportInvalidTypeVarUse
check to report cases where a TypeVar found within a return type may go unsolved because it appears only within input parameters that have default argument values specified as ...
. In this situation, it is recommended that an overload is provided that specifies the return type when the default argument value is used by a caller.
Bug Fix: Fixed bug that resulted in a false positive when assigning a function or callable containing position-only parameters to a callable with a TypeVarTuple.
Bug Fix: Fixed bug that caused docstrings to be truncated to 32 characters when generating stubs.
Enhancement: Enhanced reportInvalidTypeVarUse
to detect cases where a constructor (__init__
method) includes class-scoped TypeVars that may go unsolved because they are associated only with parameters that have default argument values.