mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Set line length to 120 characters (#2599)
This commit is contained in:
@@ -46,13 +46,9 @@ class EnvironmentDeploymentBranchPolicy(github.GithubObject.NonCompletableGithub
|
||||
|
||||
def _useAttributes(self, attributes):
|
||||
if "protected_branches" in attributes: # pragma no branch
|
||||
self._protected_branches = self._makeBoolAttribute(
|
||||
attributes["protected_branches"]
|
||||
)
|
||||
self._protected_branches = self._makeBoolAttribute(attributes["protected_branches"])
|
||||
if "custom_branch_policies" in attributes: # pragma no branch
|
||||
self._custom_branch_policies = self._makeBoolAttribute(
|
||||
attributes["custom_branch_policies"]
|
||||
)
|
||||
self._custom_branch_policies = self._makeBoolAttribute(attributes["custom_branch_policies"])
|
||||
|
||||
|
||||
class EnvironmentDeploymentBranchPolicyParams:
|
||||
@@ -60,9 +56,7 @@ class EnvironmentDeploymentBranchPolicyParams:
|
||||
This class presents the deployment branch policy parameters as can be configured for an Environment.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self, protected_branches: bool = False, custom_branch_policies: bool = False
|
||||
):
|
||||
def __init__(self, protected_branches: bool = False, custom_branch_policies: bool = False):
|
||||
assert isinstance(protected_branches, bool)
|
||||
assert isinstance(custom_branch_policies, bool)
|
||||
self.protected_branches = protected_branches
|
||||
|
||||
Reference in New Issue
Block a user