Skip to content

Commit 9a706f1

Browse files
chore: use correct type-hint for die()
1 parent cf87226 commit 9a706f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Callable,
1212
cast,
1313
Dict,
14+
NoReturn,
1415
Optional,
1516
Tuple,
1617
Type,
@@ -97,7 +98,7 @@ def wrapped_f(*args: Any, **kwargs: Any) -> Any:
9798
return wrap
9899

99100

100-
def die(msg: str, e: Optional[Exception] = None) -> None:
101+
def die(msg: str, e: Optional[Exception] = None) -> NoReturn:
101102
if e:
102103
msg = f"{msg} ({e})"
103104
sys.stderr.write(f"{msg}\n")

0 commit comments

Comments
 (0)