mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Update IssuePullRequest.py
This commit is contained in:
+1
-1
@@ -412,7 +412,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
self._number = attributes["number"]
|
||||
if "pull_request" in attributes: # pragma no branch
|
||||
assert attributes["pull_request"] is None or isinstance(attributes["pull_request"], dict), attributes["pull_request"]
|
||||
self._pull_request = None if attributes["pull_request"] is None else github.IssuePullRequest.IssuePullRequest(self._requester, attributes["pull_request"], completed=False)
|
||||
self._pull_request = None if attributes["pull_request"] is None else github.IssuePullRequest.IssuePullRequest(self._requester, self._headers, attributes["pull_request"], completed=False)
|
||||
if "repository" in attributes: # pragma no branch
|
||||
assert attributes["repository"] is None or isinstance(attributes["repository"], dict), attributes["repository"]
|
||||
self._repository = None if attributes["repository"] is None else github.Repository.Repository(self._requester, attributes["repository"], completed=False)
|
||||
|
||||
@@ -30,11 +30,6 @@ class IssuePullRequest(github.GithubObject.NonCompletableGithubObject):
|
||||
"""
|
||||
This class represents IssuePullRequests as returned for example by http://developer.github.com/v3/todo
|
||||
"""
|
||||
def __init__(self, requester, attributes, completed):
|
||||
'''
|
||||
Adapte for __init__ change, remove later
|
||||
'''
|
||||
github.GithubObject.NonCompletableGithubObject.__init__(self, requester, {}, attributes, completed)
|
||||
|
||||
@property
|
||||
def diff_url(self):
|
||||
|
||||
Reference in New Issue
Block a user