Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9358640

Browse files
JohnVillalovosnejch
authored andcommitted
chore: use correct type-hint fordie()
1 parent2156949 commit9358640

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
returnwrap
9899

99100

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp