mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
Update Repository.py
This commit is contained in:
@@ -104,7 +104,7 @@ class Notification(github.GithubObject.CompletableGithubObject):
|
||||
self._id = attributes["id"]
|
||||
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)
|
||||
self._repository = None if attributes["repository"] is None else github.Repository.Repository(self._requester, self._headers, attributes["repository"], completed=False)
|
||||
if "subject" in attributes: # pragma no branch
|
||||
assert attributes["subject"] is None or isinstance(attributes["subject"], dict), attributes["subject"]
|
||||
self._subject = None if attributes["subject"] is None else github.NotificationSubject.NotificationSubject(self._requester, self._headers, attributes["subject"], completed=False)
|
||||
|
||||
Reference in New Issue
Block a user