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:
+2
-6
@@ -157,9 +157,7 @@ class Hook(github.GithubObject.CompletableGithubObject):
|
||||
"""
|
||||
assert isinstance(name, str), name
|
||||
assert isinstance(config, dict), config
|
||||
assert events is github.GithubObject.NotSet or all(
|
||||
isinstance(element, str) for element in events
|
||||
), events
|
||||
assert events is github.GithubObject.NotSet or all(isinstance(element, str) for element in events), events
|
||||
assert add_events is github.GithubObject.NotSet or all(
|
||||
isinstance(element, str) for element in add_events
|
||||
), add_events
|
||||
@@ -179,9 +177,7 @@ class Hook(github.GithubObject.CompletableGithubObject):
|
||||
post_parameters["remove_events"] = remove_events
|
||||
if active is not github.GithubObject.NotSet:
|
||||
post_parameters["active"] = active
|
||||
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 test(self):
|
||||
|
||||
Reference in New Issue
Block a user