Skip to content

Commit f00cb6c

Browse files
committed
Add a __repr__ for RepositorySearchResult
1 parent 7410abf commit f00cb6c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

github3/search/repository.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ def __init__(self, data, session=None):
1212
self.text_matches = result.pop('text_matches', [])
1313
#: Repository object
1414
self.repository = Repository(result, self)
15+
16+
def __repr__(self):
17+
return '<RepositorySearchResult [{0}]>'.format(self.repository)

0 commit comments

Comments
 (0)