diff --git a/packages/pyright-internal/src/analyzer/typeEvaluator.ts b/packages/pyright-internal/src/analyzer/typeEvaluator.ts index 95e9359e1e16..bde1b4eef5a4 100644 --- a/packages/pyright-internal/src/analyzer/typeEvaluator.ts +++ b/packages/pyright-internal/src/analyzer/typeEvaluator.ts @@ -1137,7 +1137,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions } default: - assertNever(node); + assertNever(node, `Illegal node type: ${(node as any).nodeType}`); } if (!typeResult) {