From 66e9aa644ba3c143c3f1bbdfadded3c88a0ffe5f Mon Sep 17 00:00:00 2001 From: Amol Bhave Date: Wed, 11 Jul 2018 22:58:18 -0400 Subject: [PATCH] Fix type for click.Context.exit (#2325) click.Context.exit() calls sys.exit() and hence should be a NoReturn return type. --- third_party/2and3/click/core.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third_party/2and3/click/core.pyi b/third_party/2and3/click/core.pyi index 1c83195a1..ebb5e31e6 100644 --- a/third_party/2and3/click/core.pyi +++ b/third_party/2and3/click/core.pyi @@ -7,6 +7,7 @@ from typing import ( Iterable, List, Mapping, + NoReturn, Optional, Sequence, Set, @@ -120,7 +121,7 @@ class Context: def abort(self) -> None: ... - def exit(self, code: Union[int, str] = ...) -> None: + def exit(self, code: Union[int, str] = ...) -> NoReturn: ... def get_usage(self) -> str: