We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
die()
1 parent 2156949 commit 9358640Copy full SHA for 9358640
gitlab/cli.py
@@ -11,6 +11,7 @@
11
Callable,
12
cast,
13
Dict,
14
+ NoReturn,
15
Optional,
16
Tuple,
17
Type,
@@ -97,7 +98,7 @@ def wrapped_f(*args: Any, **kwargs: Any) -> Any:
97
98
return wrap
99
100
-def die(msg: str, e: Optional[Exception] = None) -> None:
101
+def die(msg: str, e: Optional[Exception] = None) -> NoReturn:
102
if e:
103
msg = f"{msg} ({e})"
104
sys.stderr.write(f"{msg}\n")
0 commit comments