Skip to content

Commit

Permalink
adjust the depreciated return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Anugerah committed Nov 21, 2024
1 parent 9ffc724 commit 3aadae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pyright-internal/src/analyzer/typeEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];
Expand Down

0 comments on commit 3aadae7

Please sign in to comment.