mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-26 02:38:31 +03:00
Fixed a bug that results in an unsolved TypeVar when calling list(tuple())
. This addresses #7998. (#7999)
This commit is contained in:
parent
1466ccb653
commit
1bba737d93
@ -4184,7 +4184,9 @@ class ApplySolvedTypeVarsTransformer extends TypeVarTransformer {
|
||||
return TypeVarType.cloneForUnpacked(replacement, typeVar.isVariadicInUnion);
|
||||
}
|
||||
|
||||
return replacement;
|
||||
if (!isTypeVar(replacement) || !replacement.isInScopePlaceholder || !this._options.unknownIfNotFound) {
|
||||
return replacement;
|
||||
}
|
||||
}
|
||||
|
||||
// If this typeVar is in scope for what we're solving but the type
|
||||
|
Loading…
Reference in New Issue
Block a user