diff --git a/packages/pyright-internal/src/analyzer/typeEvaluator.ts b/packages/pyright-internal/src/analyzer/typeEvaluator.ts index f314c6a0c513..f785425ebfe4 100644 --- a/packages/pyright-internal/src/analyzer/typeEvaluator.ts +++ b/packages/pyright-internal/src/analyzer/typeEvaluator.ts @@ -15768,7 +15768,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions rightHandType = transformTypeForTypeAlias( rightHandType, typeAliasNameNode, - node.rightExpression, + typeAliasNameNode, /* isPep695Syntax */ false, /* isPep695TypeVarType */ false ); @@ -15918,7 +15918,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions aliasType = transformTypeForTypeAlias( aliasType, nameNode, - valueNode, + nameNode, isPep695Syntax, /* isPep695TypeVarType */ true, typeParameters,