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:
@@ -184,9 +184,7 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
|
||||
post_parameters = {
|
||||
"body": body,
|
||||
}
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
"PATCH", self.url, input=post_parameters
|
||||
)
|
||||
headers, data = self._requester.requestJsonAndCheck("PATCH", self.url, input=post_parameters)
|
||||
self._useAttributes(data)
|
||||
|
||||
def get_reactions(self):
|
||||
@@ -268,21 +266,15 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
|
||||
if "in_reply_to_id" in attributes: # pragma no branch
|
||||
self._in_reply_to_id = self._makeIntAttribute(attributes["in_reply_to_id"])
|
||||
if "original_commit_id" in attributes: # pragma no branch
|
||||
self._original_commit_id = self._makeStringAttribute(
|
||||
attributes["original_commit_id"]
|
||||
)
|
||||
self._original_commit_id = self._makeStringAttribute(attributes["original_commit_id"])
|
||||
if "original_position" in attributes: # pragma no branch
|
||||
self._original_position = self._makeIntAttribute(
|
||||
attributes["original_position"]
|
||||
)
|
||||
self._original_position = self._makeIntAttribute(attributes["original_position"])
|
||||
if "path" in attributes: # pragma no branch
|
||||
self._path = self._makeStringAttribute(attributes["path"])
|
||||
if "position" in attributes: # pragma no branch
|
||||
self._position = self._makeIntAttribute(attributes["position"])
|
||||
if "pull_request_url" in attributes: # pragma no branch
|
||||
self._pull_request_url = self._makeStringAttribute(
|
||||
attributes["pull_request_url"]
|
||||
)
|
||||
self._pull_request_url = self._makeStringAttribute(attributes["pull_request_url"])
|
||||
if "updated_at" in attributes: # pragma no branch
|
||||
self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"])
|
||||
if "url" in attributes: # pragma no branch
|
||||
@@ -290,6 +282,4 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
|
||||
if "html_url" in attributes: # pragma no branch
|
||||
self._html_url = self._makeStringAttribute(attributes["html_url"])
|
||||
if "user" in attributes: # pragma no branch
|
||||
self._user = self._makeClassAttribute(
|
||||
github.NamedUser.NamedUser, attributes["user"]
|
||||
)
|
||||
self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["user"])
|
||||
|
||||
Reference in New Issue
Block a user