Skip to content

Commit

Permalink
Added missing check for inappropriate use of an unpacked TypeVarTuple…
Browse files Browse the repository at this point in the history
… within a TypeAliasType type parameter list. This addresses #7284.
  • Loading branch information
erictraut committed Feb 17, 2024
1 parent effa6a2 commit 853241c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pyright-internal/src/analyzer/typeEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12529,7 +12529,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions
).type;

if (isTypeVar(entryType)) {
if (entryType.scopeId) {
if (entryType.scopeId || entryType.isVariadicUnpacked) {
isTypeParamListValid = false;
} else {
entryType = TypeVarType.cloneForScopeId(
Expand Down

0 comments on commit 853241c

Please sign in to comment.