@@ -623,7 +623,7 @@ def http_list(
623
623
query_data :Optional [Dict [str ,Any ]]= None ,
624
624
as_list = None ,
625
625
** kwargs ,
626
- ):
626
+ )-> Union [ "GitlabList" , List [ Dict [ str , Any ]]] :
627
627
"""Make a GET request to the Gitlab server for list-oriented queries.
628
628
629
629
Args:
@@ -772,7 +772,9 @@ def http_delete(self, path: str, **kwargs) -> requests.Response:
772
772
return self .http_request ("delete" ,path ,** kwargs )
773
773
774
774
@gitlab .exceptions .on_http_error (gitlab .exceptions .GitlabSearchError )
775
- def search (self ,scope :str ,search :str ,** kwargs )-> requests .Response :
775
+ def search (
776
+ self ,scope :str ,search :str ,** kwargs
777
+ )-> Union ["GitlabList" ,List [Dict [str ,Any ]]]:
776
778
"""Search GitLab resources matching the provided string.'
777
779
778
780
Args:
@@ -896,10 +898,10 @@ def __len__(self) -> int:
896
898
return 0
897
899
return int (self ._total )
898
900
899
- def __next__ (self ):
901
+ def __next__ (self )-> Dict [ str , Any ] :
900
902
return self .next ()
901
903
902
- def next (self )-> "Gitlab" :
904
+ def next (self )-> Dict [ str , Any ] :
903
905
try :
904
906
item = self ._data [self ._current ]
905
907
self ._current += 1