Skip to content

Commit 4a8b416

Browse files
chore: correct type-hints for participants() method
The `participants()` method returns a list of dictionaries. Update the type-hints for it.
1 parent 688a3ea commit 4a8b416

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitlab/mixins.py

+2-2
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-
def participants(self, **kwargs: Any) -> Dict[str, Any]:
848+
def participants(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
if TYPE_CHECKING:
868-
assert isinstance(result, dict)
868+
assert isinstance(result, list)
869869
return result
870870

871871

0 commit comments

Comments
 (0)