mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Set line length to 120 characters (#2599)
This commit is contained in:
@@ -146,9 +146,7 @@ class GitReleaseAsset(github.GithubObject.CompletableGithubObject):
|
||||
assert isinstance(name, str), name
|
||||
assert isinstance(label, str), label
|
||||
post_parameters = {"name": name, "label": label}
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
"PATCH", self.url, input=post_parameters
|
||||
)
|
||||
headers, data = self._requester.requestJsonAndCheck("PATCH", self.url, input=post_parameters)
|
||||
return GitReleaseAsset(self._requester, headers, data, completed=True)
|
||||
|
||||
def _initAttributes(self):
|
||||
@@ -175,9 +173,7 @@ class GitReleaseAsset(github.GithubObject.CompletableGithubObject):
|
||||
if "label" in attributes: # pragma no branch
|
||||
self._label = self._makeStringAttribute(attributes["label"])
|
||||
if "uploader" in attributes: # pragma no branch
|
||||
self._uploader = self._makeClassAttribute(
|
||||
github.NamedUser.NamedUser, attributes["uploader"]
|
||||
)
|
||||
self._uploader = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["uploader"])
|
||||
if "content_type" in attributes: # pragma no branch
|
||||
self._content_type = self._makeStringAttribute(attributes["content_type"])
|
||||
if "state" in attributes: # pragma no branch
|
||||
@@ -191,6 +187,4 @@ class GitReleaseAsset(github.GithubObject.CompletableGithubObject):
|
||||
if "updated_at" in attributes: # pragma no branch
|
||||
self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"])
|
||||
if "browser_download_url" in attributes: # pragma no branch
|
||||
self._browser_download_url = self._makeStringAttribute(
|
||||
attributes["browser_download_url"]
|
||||
)
|
||||
self._browser_download_url = self._makeStringAttribute(attributes["browser_download_url"])
|
||||
|
||||
Reference in New Issue
Block a user