mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 06:36:54 +08:00
Change return type for click.Context.fail and click.Context.abort to NoReturn (#2326)
This commit is contained in:
committed by
Jelle Zijlstra
parent
66e9aa644b
commit
8000513868
4
third_party/2and3/click/core.pyi
vendored
4
third_party/2and3/click/core.pyi
vendored
@@ -115,10 +115,10 @@ class Context:
|
||||
def lookup_default(self, name: str) -> Any:
|
||||
...
|
||||
|
||||
def fail(self, message: str) -> None:
|
||||
def fail(self, message: str) -> NoReturn:
|
||||
...
|
||||
|
||||
def abort(self) -> None:
|
||||
def abort(self) -> NoReturn:
|
||||
...
|
||||
|
||||
def exit(self, code: Union[int, str] = ...) -> NoReturn:
|
||||
|
||||
Reference in New Issue
Block a user