Set line length to 120 characters (#2599)

This commit is contained in:
Jirka Borovec
2023-07-13 17:37:20 +02:00
committed by GitHub
parent de80ff4b91
commit 13e178a3ab
192 changed files with 1455 additions and 4433 deletions
+3 -9
View File
@@ -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"])