Skip to content

Commit 9358640

Browse files
JohnVillalovosnejch
authored andcommitted
chore: use correct type-hint for die()
1 parent 2156949 commit 9358640

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy