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

Commitbadc916

Browse files
chore: correct type-hints forparticipants() method
The `participants()` method returns a list of dictionaries. Update thetype-hints for it.
1 parent97f8233 commitbadc916

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎gitlab/mixins.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ class ParticipantsMixin(_RestObjectBase):
845845

846846
@cli.register_custom_action(("ProjectMergeRequest","ProjectIssue"))
847847
@exc.on_http_error(exc.GitlabListError)
848-
defparticipants(self,**kwargs:Any)->Dict[str,Any]:
848+
defparticipants(self,**kwargs:Any)->List[Any]:
849849
"""List the participants.
850850
851851
Args:
@@ -865,7 +865,7 @@ def participants(self, **kwargs: Any) -> Dict[str, Any]:
865865
path=f"{self.manager.path}/{self.encoded_id}/participants"
866866
result=self.manager.gitlab.http_get(path,**kwargs)
867867
ifTYPE_CHECKING:
868-
assertisinstance(result,dict)
868+
assertisinstance(result,list)
869869
returnresult
870870

871871

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp