mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-05 12:27:30 +03:00
Temporarily commented out buggy code in list comprehension code.
This commit is contained in:
parent
05aea176ef
commit
cee369f31b
@ -252,7 +252,7 @@ export class ExpressionEvaluator {
|
||||
} else if (node instanceof ListComprehensionNode) {
|
||||
// TODO - need to implement
|
||||
// TODO - infer list type
|
||||
this._getTypeFromExpression(node.baseExpression, EvaluatorFlags.None);
|
||||
// this._getTypeFromExpression(node.baseExpression, EvaluatorFlags.None);
|
||||
let type = ScopeUtils.getBuiltInObject(this._scope, 'list', []);
|
||||
typeResult = { type, node };
|
||||
} else if (node instanceof DictionaryNode) {
|
||||
|
@ -1347,7 +1347,7 @@ export class TypeAnalyzer extends ParseTreeWalker {
|
||||
exprType = TypeUtils.combineTypes(leftType, rightType);
|
||||
} else if (node instanceof ListComprehensionNode) {
|
||||
// TODO - infer list type
|
||||
this._getTypeOfExpression(node.baseExpression);
|
||||
// this._getTypeOfExpression(node.baseExpression);
|
||||
exprType = ScopeUtils.getBuiltInObject(
|
||||
this._currentScope, 'list', []);
|
||||
} else if (node instanceof DictionaryNode) {
|
||||
|
Loading…
Reference in New Issue
Block a user