diff --git a/github/AuthenticatedUser.py b/github/AuthenticatedUser.py index 93417fe4..75caa57c 100644 --- a/github/AuthenticatedUser.py +++ b/github/AuthenticatedUser.py @@ -707,7 +707,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject): None, None ) - return github.Notification.Notification(self._requester, data, completed=True) + return github.Notification.Notification(self._requester, headers, data, completed=True) def get_notifications(self, all=github.GithubObject.NotSet, participating=github.GithubObject.NotSet): """ diff --git a/github/Notification.py b/github/Notification.py index 433cfcd3..f6f89fa5 100644 --- a/github/Notification.py +++ b/github/Notification.py @@ -33,9 +33,6 @@ class Notification(github.GithubObject.CompletableGithubObject): """ This class represents Notifications. The reference can be found here http://developer.github.com/v3/activity/notifications/ """ - def __init__(self, requester, attributes, completed): - # Adapte for __init__ change, remove later - github.GithubObject.CompletableGithubObject.__init__(self, requester, {}, attributes, completed) @property def id(self):