mirror of
https://github.com/microsoft/pyright.git
synced 2024-07-14 11:00:25 +03:00
Small code cleanup. No functional change.
This commit is contained in:
parent
16f398976a
commit
fa0f6b7349
@ -16138,6 +16138,7 @@ export function createTypeEvaluator(
|
||||
writeTypeCache(node.rightExpression, { type: rightHandType }, EvaluatorFlags.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!rightHandType) {
|
||||
// Determine whether there is a declared type.
|
||||
@ -16197,11 +16198,7 @@ export function createTypeEvaluator(
|
||||
}
|
||||
}
|
||||
|
||||
const srcTypeResult = getTypeOfExpression(
|
||||
node.rightExpression,
|
||||
flags,
|
||||
makeInferenceContext(declaredType)
|
||||
);
|
||||
const srcTypeResult = getTypeOfExpression(node.rightExpression, flags, makeInferenceContext(declaredType));
|
||||
let srcType = srcTypeResult.type;
|
||||
expectedTypeDiagAddendum = srcTypeResult.expectedTypeDiagAddendum;
|
||||
if (srcTypeResult.isIncomplete) {
|
||||
@ -16261,7 +16258,6 @@ export function createTypeEvaluator(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assignTypeToExpression(
|
||||
node.leftExpression,
|
||||
|
Loading…
Reference in New Issue
Block a user