diff --git a/packages/pyright-internal/src/analyzer/typeEvaluator.ts b/packages/pyright-internal/src/analyzer/typeEvaluator.ts index c5de9b9b2..ff4e60b86 100644 --- a/packages/pyright-internal/src/analyzer/typeEvaluator.ts +++ b/packages/pyright-internal/src/analyzer/typeEvaluator.ts @@ -11670,9 +11670,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions const firstArg = argList[0]; if (firstArg.valueExpression && firstArg.valueExpression.nodeType === ParseNodeType.StringList) { - const typeAliasName = firstArg.valueExpression.strings - .map((s) => s.value) - .join(''); + const typeAliasName = firstArg.valueExpression.strings.map((s) => s.value).join(''); if (typeAliasName !== nameNode.value) { addError(Localizer.Diagnostic.typeAliasTypeNameMismatch(), firstArg.valueExpression); }