mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Set line length to 120 characters (#2599)
This commit is contained in:
@@ -153,9 +153,7 @@ class DeploymentStatus(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def _useAttributes(self, attributes):
|
||||
if "environment_url" in attributes: # pragma no branch
|
||||
self._environment_url = self._makeStringAttribute(
|
||||
attributes["environment_url"]
|
||||
)
|
||||
self._environment_url = self._makeStringAttribute(attributes["environment_url"])
|
||||
if "url" in attributes: # pragma no branch
|
||||
self._url = self._makeStringAttribute(attributes["url"])
|
||||
if "id" in attributes: # pragma no branch
|
||||
@@ -165,21 +163,15 @@ class DeploymentStatus(github.GithubObject.CompletableGithubObject):
|
||||
if "created_at" in attributes: # pragma no branch
|
||||
self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
|
||||
if "creator" in attributes: # pragma no branch
|
||||
self._creator = self._makeClassAttribute(
|
||||
github.NamedUser.NamedUser, attributes["creator"]
|
||||
)
|
||||
self._creator = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["creator"])
|
||||
if "deployment_url" in attributes: # pragma no branch
|
||||
self._deployment_url = self._makeStringAttribute(
|
||||
attributes["deployment_url"]
|
||||
)
|
||||
self._deployment_url = self._makeStringAttribute(attributes["deployment_url"])
|
||||
if "description" in attributes: # pragma no branch
|
||||
self._description = self._makeStringAttribute(attributes["description"])
|
||||
if "environment" in attributes: # pragma no branch
|
||||
self._environment = self._makeStringAttribute(attributes["environment"])
|
||||
if "repository_url" in attributes: # pragma no branch
|
||||
self._repository_url = self._makeStringAttribute(
|
||||
attributes["repository_url"]
|
||||
)
|
||||
self._repository_url = self._makeStringAttribute(attributes["repository_url"])
|
||||
if "state" in attributes: # pragma no branch
|
||||
self._state = self._makeStringAttribute(attributes["state"])
|
||||
if "target_url" in attributes: # pragma no branch
|
||||
|
||||
Reference in New Issue
Block a user