Skip to content

Commit 01ef2f0

Browse files
omgjlkwestphahl
authored andcommitted
Sort out checks imports to fix existing tests
While I haven't added any new tests, existing ones should continue to work.
1 parent 0a76731 commit 01ef2f0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/github3/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"GitHubError",
6666
"GitHubStatus",
6767
"authorize",
68+
'checks',
6869
"login",
6970
"enterprise_login",
7071
"emojis",

src/github3/checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from . import models
88
from . import pulls
9-
from .repos import ShortRepository
109
from .decorators import requires_auth
1110

1211

@@ -64,6 +63,8 @@ class CheckSuite(models.GitHubCore):
6463
}
6564

6665
def _update_attributes(self, suite):
66+
# Import here, because a toplevel import causes an import loop
67+
from .repos import ShortRepository
6768
self._api = suite['url']
6869
#self.base = Base(pull['base'], self)
6970
self.status = suite['status']

0 commit comments

Comments
 (0)