mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-26 10:55:06 +03:00
Added check and corresponding error for use of an unpacked tuple in a Concatenate
.
This commit is contained in:
parent
d3b15d1c67
commit
7c2205b286
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user