Skip to content

Commit

Permalink
Added missing error for an illegal unpacked argument in type argument…
Browse files Browse the repository at this point in the history
… list.

(cherry picked from commit 7a9165b)
  • Loading branch information
erictraut committed Jan 7, 2024
1 parent 1f74459 commit ba06108
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/pyright-internal/src/analyzer/typeEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit ba06108

Please sign in to comment.