mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-27 11:18:42 +03:00
Handled case where base type of call expression evaluates to a TypeVar type.
This commit is contained in:
parent
232c13c093
commit
a109484776
@ -1615,7 +1615,11 @@ export class ExpressionEvaluator {
|
||||
specializeReturnType = true): TypeResult {
|
||||
|
||||
let type: Type | undefined;
|
||||
const callType = baseTypeResult.type;
|
||||
let callType = baseTypeResult.type;
|
||||
|
||||
if (callType.category === TypeCategory.TypeVar) {
|
||||
callType = TypeUtils.specializeType(callType, undefined);
|
||||
}
|
||||
|
||||
if (callType.category === TypeCategory.Class) {
|
||||
if (ClassType.isBuiltIn(callType)) {
|
||||
|
Loading…
Reference in New Issue
Block a user