mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
Export IncompletableObject in the github namespace (#1450)
When IncompletableObject was added, it was only added to GithubException, and not imported directly into the github namespace like other exceptions. Correct that, and clean up the resultant now unrequired import.
This commit is contained in:
@@ -46,6 +46,7 @@ from .GithubException import ( # type: ignore
|
||||
BadCredentialsException,
|
||||
BadUserAgentException,
|
||||
GithubException,
|
||||
IncompletableObject,
|
||||
RateLimitExceededException,
|
||||
TwoFactorException,
|
||||
UnknownObjectException,
|
||||
@@ -73,6 +74,7 @@ __all__ = [
|
||||
Github,
|
||||
GithubException,
|
||||
GithubIntegration,
|
||||
IncompletableObject,
|
||||
InputFileContent,
|
||||
InputGitAuthor,
|
||||
InputGitTreeElement,
|
||||
|
||||
+1
-2
@@ -34,7 +34,6 @@
|
||||
import pickle
|
||||
|
||||
import github
|
||||
from github.GithubException import IncompletableObject
|
||||
|
||||
from . import Framework
|
||||
|
||||
@@ -142,4 +141,4 @@ class SpecificExceptions(Framework.TestCase):
|
||||
def testIncompletableObject(self):
|
||||
github.UserKey.UserKey.setCheckAfterInitFlag(False)
|
||||
obj = github.UserKey.UserKey(None, {}, {}, False)
|
||||
self.assertRaises(IncompletableObject, obj._completeIfNeeded)
|
||||
self.assertRaises(github.IncompletableObject, obj._completeIfNeeded)
|
||||
|
||||
Reference in New Issue
Block a user