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

Commit840572e

Browse files
JohnVillalovosnejch
authored andcommitted
chore: correct type-hint forjob.trace()
Closes:#2808
1 parent62fa271 commit840572e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎gitlab/v4/objects/jobs.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def trace(
209209
*,
210210
iterator:bool=False,
211211
**kwargs:Any,
212-
)->Dict[str,Any]:
212+
)->Optional[Union[bytes,Iterator[Any]]]:
213213
"""Get the job trace.
214214
215215
Args:
@@ -236,12 +236,9 @@ def trace(
236236
)
237237
ifTYPE_CHECKING:
238238
assertisinstance(result,requests.Response)
239-
return_value=utils.response_content(
239+
returnutils.response_content(
240240
result,streamed,action,chunk_size,iterator=iterator
241241
)
242-
ifTYPE_CHECKING:
243-
assertisinstance(return_value,dict)
244-
returnreturn_value
245242

246243

247244
classProjectJobManager(RetrieveMixin,RESTManager):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp