from github3.models import GitHubCore
from github3.repos import Repository


class RepositorySearchResult(GitHubCore):
    def __init__(self, data, session=None):
        result = data.copy()
        #: Score of the result
        self.score = result.pop('score')
        #: Text matches
        self.text_matches = result.pop('text_matches', [])
        #: Repository object
        self.repository = Repository(result, self)

from github3.models import GitHubCore
from github3.repos import Repository


class RepositorySearchResult(GitHubCore):
    def __init__(self, data, session=None):
        result = data.copy()
        #: Score of the result
        self.score = result.pop('score')
        #: Text matches
        self.text_matches = result.pop('text_matches', [])
        #: Repository object
        self.repository = Repository(result, self)

    def __repr__(self):
        return '<RepositorySearchResult [{0}]>'.format(self.repository)

Add a __repr__ for RepositorySearchResult
Add a __repr__ for RepositorySearchResult

  from github3.models import GitHubCore
  from github3.repos import Repository
  
  
  class RepositorySearchResult(GitHubCore):
      def __init__(self, data, session=None):
          result = data.copy()
          #: Score of the result
          self.score = result.pop('score')
          #: Text matches
          self.text_matches = result.pop('text_matches', [])
          #: Repository object
          self.repository = Repository(result, self)
  
+     def __repr__(self):
+         return '<RepositorySearchResult [{0}]>'.format(self.repository)
+ 
Add a __repr__ for RepositorySearchResult
## Code Before:
from github3.models import GitHubCore
from github3.repos import Repository


class RepositorySearchResult(GitHubCore):
    def __init__(self, data, session=None):
        result = data.copy()
        #: Score of the result
        self.score = result.pop('score')
        #: Text matches
        self.text_matches = result.pop('text_matches', [])
        #: Repository object
        self.repository = Repository(result, self)

## Instruction:
Add a __repr__ for RepositorySearchResult
## Code After:
from github3.models import GitHubCore
from github3.repos import Repository


class RepositorySearchResult(GitHubCore):
    def __init__(self, data, session=None):
        result = data.copy()
        #: Score of the result
        self.score = result.pop('score')
        #: Text matches
        self.text_matches = result.pop('text_matches', [])
        #: Repository object
        self.repository = Repository(result, self)

    def __repr__(self):
        return '<RepositorySearchResult [{0}]>'.format(self.repository)
