8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c6035f commit d6b80a9Copy full SHA for d6b80a9
github3/search/code.py
@@ -1,11 +1,11 @@
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3
4
-from ..models import GitHubCore
5
-from ..repos import Repository
+from .. import models
+from .. import repos
6
7
8
-class CodeSearchResult(GitHubCore):
+class CodeSearchResult(models.GitHubCore):
9
10
def _update_attributes(self, data):
11
self._api = self._get_attribute(data, 'url')
@@ -27,7 +27,7 @@ def _update_attributes(self, data):
27
28
#: Repository the code snippet belongs to
29
self.repository = self._class_attribute(
30
- data, 'repository', Repository, self
+ data, 'repository', repos.ShortRepository, self
31
)
32
33
#: Score of the result
0 commit comments