8000 Add better documentation to SearchIterator · abesto/github3.py@434a104 · GitHub
[go: up one dir, main page]

Skip to content

Commit 434a104

Browse files
committed
Add better documentation to SearchIterator
1 parent a4924f4 commit 434a104

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

github3/structs.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,23 @@ def next(self):
104104

105105

106106
class SearchIterator(GitHubIterator):
107+
108+
"""This is a special-cased class for returning iterable search results.
109+
110+
It inherits from :class:`GitHubIterator <github3.structs.GitHubIterator>`.
111+
All members and methods documented here are unique to instances of this
112+
class. For other members and methods, check its parent class.
113+
114+
"""
115+
107116
def __init__(self, count, url, cls, session, params=None, etag=None,
108117
headers=None):
109118
super(SearchIterator, self).__init__(count, url, cls, session, params,
110119
etag, headers)
120+
#: Total count returned by GitHub
111121
self.total_count = 0
122+
#: Items array returned in the last request
123+
self.items = []
112124

113125
def __repr__(self):
114126
return '<SearchIterator [{0}, {1}?{2}]>'.format(self.count, self.path,

0 commit comments

Comments
 (0)
0