Added check and corresponding error for use of an unpacked tuple in a Concatenate.

This commit is contained in:
Eric Traut 2023-03-07 07:29:31 -07:00
parent d3b15d1c67
commit 7c2205b286

View File

@ -15010,6 +15010,8 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions
addError(Localizer.Diagnostic.paramSpecContext(), typeArg.node);
} else if (isUnpackedVariadicTypeVar(typeArg.type)) {
addError(Localizer.Diagnostic.typeVarTupleContext(), typeArg.node);
} else if (isUnpackedClass(typeArg.type)) {
addError(Localizer.Diagnostic.unpackedArgInTypeArgument(), typeArg.node);
}
}
});