@@ -877,7 +877,7 @@ def iter_assignees(self, number=-1, etag=None):
877
877
-1 returns all available assignees
878
878
:param str etag: (optional), ETag from a previous request to the same
879
879
endpoint
880
- :returns: list of :class:`User <github3.users.User>`\ s
880
+ :returns: generator of :class:`User <github3.users.User>`\ s
881
881
"""
882
882
url = self ._build_url ('assignees' , base_url = self ._api )
883
883
return self ._iter (int (number ), url , User , etag = etag )
@@ -889,7 +889,7 @@ def iter_branches(self, number=-1, etag=None):
889
889
-1 returns all branches
890
890
:param str etag: (optional), ETag from a previous request to the same
891
891
endpoint
892
- :returns: list of :class:`Branch <Branch>`\ es
892
+ :returns: generator of :class:`Branch <Branch>`\ es
893
893
"""
894
894
url = self ._build_url ('branches' , base_url = self ._api )
895
895
return self ._iter (int (number ), url , Branch , etag = etag )
@@ -925,7 +925,7 @@ def iter_comments(self, number=-1, etag=None):
925
925
-1 returns all comments
926
926
:param str etag: (optional), ETag from a previous request to the same
927
927
endpoint
928
- :returns: list of :class:`RepoComment <RepoComment>`\ s
928
+ :returns: generator of :class:`RepoComment <RepoComment>`\ s
929
929
"""
930
930
url = self ._build_url ('comments' , base_url = self ._api )
931
931
return self ._iter (int (number ), url , RepoComment , etag = etag )
@@ -939,7 +939,7 @@ def iter_comments_on_commit(self, sha, number=1, etag=None):
939
939
-1 returns all comments
940
940
:param str etag: (optional), ETag from a previous request to the same
941
941
endpoint
942
- :returns: list of :class:`RepoComment <RepoComment>`\ s
942
+ :returns: generator of :class:`RepoComment <RepoComment>`\ s
943
943
"""
944
944
url = self ._build_url ('commits' , sha , 'comments' , base_url = self ._api )
945
945
return self ._iter (int (number ), url , RepoComment , etag = etag )
@@ -980,7 +980,7 @@ def iter_commits(self, sha=None, path=None, author=None, number=-1,
980
980
-1 returns all comments
981
981
:param str etag: (optional), ETag from a previous request to the same
982
982
endpoint
983
- :returns: list of :class:`RepoCommit <RepoCommit>`\ s
983
+ :returns: generator of :class:`RepoCommit <RepoCommit>`\ s
984
984
"""
985
985
params = {'sha' : sha , 'path' : path , 'author' : author }
986
986
self ._remove_none (params )
@@ -996,7 +996,7 @@ def iter_contributors(self, anon=False, number=-1, etag=None):
996
996
Default: -1 returns all contributors
997
997
:param str etag: (optional), ETag from a previous request to the same
998
998
endpoint
999
- :returns: list of :class:`User <github3.users.User>`\ s
999
+ :returns: generator of :class:`User <github3.users.User>`\ s
1000
1000
"""
1001
1001
url = self ._build_url ('contributors' , base_url = self ._api )
1002
1002
params = {}
@@ -1039,7 +1039,7 @@ def iter_downloads(self, number=-1, etag=None):
1039
1039
-1 returns all available downloads
1040
1040
:param str etag: (optional), ETag from a previous request to the same
1041
1041
endpoint
1042
- :returns: list of :class:`Download <Download>`\ s
1042
+ :returns: generator of :class:`Download <Download>`\ s
1043
1043
"""
1044
1044
url = self ._build_url ('downloads' , base_url = self ._api )
1045
1045
return self ._iter (int (number ), url , Download , etag = etag )
@@ -1051,7 +1051,7 @@ def iter_events(self, number=-1, etag=None):
1051
1051
returns all available events
1052
1052
:param str etag: (optional), ETag from a previous request to the same
1053
1053
endpoint
1054
- :returns: list of :class:`Event <github3.events.Event>`\ s
1054
+ :returns: generator of :class:`Event <github3.events.Event>`\ s
1055
1055
"""
1056
1056
url = self ._build_url ('events' , base_url = self ._api )
1057
1057
return self ._iter (int (number ), url , Event , etag = etag )
@@ -1065,7 +1065,7 @@ def iter_forks(self, sort='', number=-1, etag=None):
1065
1065
returns all forks
1066
1066
:param str etag: (optional), ETag from a previous request to the same
1067
1067
endpoint
1068
- :returns: list of :class:`Repository <Repository>`
1068
+ :returns: generator of :class:`Repository <Repository>`
1069
1069
"""
1070
1070
url = self ._build_url ('forks' , base_url = self ._api )
1071
1071
params = {}
@@ -1081,7 +1081,7 @@ def iter_hooks(self, number=-1, etag=None):
1081
1081
returns all hooks
1082
1082
:param str etag: (optional), ETag from a previous request to the same
1083
1083
endpoint
1084
- :returns: list of :class:`Hook <Hook>`\ s
1084
+ :returns: generator of :class:`Hook <Hook>`\ s
1085
1085
"""
1086
1086
url = self ._build_url ('hooks' , base_url = self ._api )
1087
1087
return self ._iter (int (number ), url , Hook , etag = etag )
@@ -1112,7 +1112,7 @@ def iter_issues(self,
1112
1112
By default all issues are returned
1113
1113
:param str etag: (optional), ETag from a previous request to the same
1114
1114
endpoint
1115
- :returns: list of :class:`Issue <github3.issues.Issue>`\ s
1115
+ :returns: generator of :class:`Issue <github3.issues.Issue>`\ s
1116
1116
"""
1117
1117
url = self ._build_url ('issues' , base_url = self ._api )
1118
1118
@@ -1172,7 +1172,7 @@ def iter_languages(self, number=-1, etag=None):
1172
1172
-1 returns all used languages
1173
1173
:param str etag: (optional), ETag from a previous request to the same
1174
1174
endpoint
1175
- :returns: list of tuples
1175
+ :returns: generator of tuples
1176
1176
"""
1177
1177
url = self ._build_url ('languages' , base_url = self ._api )
1178
1178
return self ._iter (int (number ), url , tuple , etag = etag )
0 commit comments