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

Commit046607c

Browse files
chore: correct a type-hint
1 parent90ecf2f commit046607c

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
@@ -21,6 +21,7 @@
2121
importfunctools
2222
importre
2323
importsys
24+
fromtypesimportModuleType
2425
fromtypingimportAny,Callable,cast,Dict,Optional,Tuple,Type,TypeVar,Union
2526

2627
fromrequests.structuresimportCaseInsensitiveDict
@@ -88,7 +89,7 @@ def die(msg: str, e: Optional[Exception] = None) -> None:
8889
sys.exit(1)
8990

9091

91-
defwhat_to_cls(what:str,namespace:Type)->RESTObject:
92+
defwhat_to_cls(what:str,namespace:ModuleType)->Type[RESTObject]:
9293
classes=CaseInsensitiveDict(namespace.__dict__)
9394
lowercase_class=what.replace("-","")
9495

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp