mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 07:55:56 +03:00
The token "..." should mean an ellipsis object, not the ellipsis class, when used in a normal expression within a non-stub file.
This commit is contained in:
parent
b83658bc38
commit
1c396ac436
@ -837,7 +837,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, printTypeFlags:
|
||||
} else if ((flags & EvaluatorFlags.ConvertEllipsisToUnknown) !== 0) {
|
||||
typeResult = { type: UnknownType.create(), node };
|
||||
} else {
|
||||
const ellipsisType = getBuiltInType(node, 'ellipsis') || AnyType.create();
|
||||
const ellipsisType = getBuiltInObject(node, 'ellipsis') || AnyType.create();
|
||||
typeResult = { type: ellipsisType, node };
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user