diff --git a/packages/pyright-internal/src/analyzer/typeEvaluator.ts b/packages/pyright-internal/src/analyzer/typeEvaluator.ts index 3cd8a7f0f..0f0d7e802 100644 --- a/packages/pyright-internal/src/analyzer/typeEvaluator.ts +++ b/packages/pyright-internal/src/analyzer/typeEvaluator.ts @@ -19466,7 +19466,7 @@ export function createTypeEvaluator( if (isAbstract || methodAlwaysRaisesNotImplemented(functionDecl)) { inferredReturnType = UnknownType.create(); } else { - inferredReturnType = NeverType.createNoReturn(); + inferredReturnType = NeverType.createNever(); } } else { const inferredReturnTypes: Type[] = [];