mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-19 04:07:36 +03:00
Added missing error for an illegal unpacked argument in type argument list.
(cherry picked from commit 7a9165b716
)
This commit is contained in:
parent
1f74459b6a
commit
ba06108bcb
@ -7537,6 +7537,8 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions
|
||||
isTupleClass(typeResult.type)
|
||||
) {
|
||||
typeResult.type = ClassType.cloneForUnpacked(typeResult.type);
|
||||
} else {
|
||||
addError(Localizer.Diagnostic.unpackNotAllowed(), arg.valueExpression);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user