mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Set line length to 120 characters (#2599)
This commit is contained in:
@@ -126,9 +126,7 @@ class Notification(github.GithubObject.CompletableGithubObject):
|
||||
:type: :class:github.PullRequest.PullRequest
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck("GET", self.subject.url)
|
||||
return github.PullRequest.PullRequest(
|
||||
self._requester, headers, data, completed=True
|
||||
)
|
||||
return github.PullRequest.PullRequest(self._requester, headers, data, completed=True)
|
||||
|
||||
def get_issue(self):
|
||||
"""
|
||||
@@ -153,9 +151,7 @@ class Notification(github.GithubObject.CompletableGithubObject):
|
||||
if "last_read_at" in attributes: # pragma no branch
|
||||
self._last_read_at = self._makeDatetimeAttribute(attributes["last_read_at"])
|
||||
if "repository" in attributes: # pragma no branch
|
||||
self._repository = self._makeClassAttribute(
|
||||
github.Repository.Repository, attributes["repository"]
|
||||
)
|
||||
self._repository = self._makeClassAttribute(github.Repository.Repository, attributes["repository"])
|
||||
if "subject" in attributes: # pragma no branch
|
||||
self._subject = self._makeClassAttribute(
|
||||
github.NotificationSubject.NotificationSubject, attributes["subject"]
|
||||
@@ -163,9 +159,7 @@ class Notification(github.GithubObject.CompletableGithubObject):
|
||||
if "reason" in attributes: # pragma no branch
|
||||
self._reason = self._makeStringAttribute(attributes["reason"])
|
||||
if "subscription_url" in attributes: # pragma no branch
|
||||
self._subscription_url = self._makeStringAttribute(
|
||||
attributes["subscription_url"]
|
||||
)
|
||||
self._subscription_url = self._makeStringAttribute(attributes["subscription_url"])
|
||||
if "unread" in attributes: # pragma no branch
|
||||
self._unread = self._makeBoolAttribute(attributes["unread"])
|
||||
if "updated_at" in attributes: # pragma no branch
|
||||
|
||||
Reference in New Issue
Block a user