Skip to content

Commit

Permalink
Fixed a bug that led to a duplicate error message when defining a cla…
Browse files Browse the repository at this point in the history
…ss-scoped type alias.
  • Loading branch information
erictraut committed Jan 7, 2024
1 parent 69fb4b7 commit 57282f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pyright-internal/src/analyzer/typeEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15768,7 +15768,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions
rightHandType = transformTypeForTypeAlias(
rightHandType,
typeAliasNameNode,
node.rightExpression,
typeAliasNameNode,
/* isPep695Syntax */ false,
/* isPep695TypeVarType */ false
);
Expand Down Expand Up @@ -15918,7 +15918,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions
aliasType = transformTypeForTypeAlias(
aliasType,
nameNode,
valueNode,
nameNode,
isPep695Syntax,
/* isPep695TypeVarType */ true,
typeParameters,
Expand Down

0 comments on commit 57282f7

Please sign in to comment.