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
+23 -69
View File
@@ -74,9 +74,7 @@ from github.WorkflowRun import WorkflowRun
class Repository(CompletableGithubObject):
def __repr__(self) -> str: ...
def _hub(
self, mode: str, event: str, callback: str, secret: Union[str, _NotSetType]
) -> None: ...
def _hub(self, mode: str, event: str, callback: str, secret: Union[str, _NotSetType]) -> None: ...
@property
def _identity(self) -> str: ...
def _initAttributes(self) -> None: ...
@@ -135,9 +133,7 @@ class Repository(CompletableGithubObject):
started_at: Union[_NotSetType, datetime] = ...,
conclusion: Union[_NotSetType, str] = ...,
completed_at: Union[_NotSetType, datetime] = ...,
output: Union[
_NotSetType, Dict[str, Union[str, List[Dict[str, Union[str, int]]]]]
] = ...,
output: Union[_NotSetType, Dict[str, Union[str, List[Dict[str, Union[str, int]]]]]] = ...,
actions: Union[_NotSetType, List[Dict[str, str]]] = ...,
) -> CheckRun: ...
def create_check_suite(self, head_sha: str) -> CheckSuite: ...
@@ -160,9 +156,7 @@ class Repository(CompletableGithubObject):
environment_name: str,
wait_timer: int = ...,
reviewers: List[ReviewerParams] = ...,
deployment_branch_policy: Optional[
EnvironmentDeploymentBranchPolicyParams
] = ...,
deployment_branch_policy: Optional[EnvironmentDeploymentBranchPolicyParams] = ...,
) -> Environment: ...
def create_file(
self,
@@ -235,12 +229,8 @@ class Repository(CompletableGithubObject):
labels: Union[List[Label], _NotSetType, List[str]] = ...,
assignees: Union[_NotSetType, List[str], List[NamedUser]] = ...,
) -> Issue: ...
def create_key(
self, title: str, key: str, read_only: bool = ...
) -> RepositoryKey: ...
def create_label(
self, name: str, color: str, description: Union[str, _NotSetType] = ...
) -> Label: ...
def create_key(self, title: str, key: str, read_only: bool = ...) -> RepositoryKey: ...
def create_label(self, name: str, color: str, description: Union[str, _NotSetType] = ...) -> Label: ...
def create_milestone(
self,
title: str,
@@ -248,9 +238,7 @@ class Repository(CompletableGithubObject):
description: Union[str, _NotSetType] = ...,
due_on: Union[date, _NotSetType] = ...,
) -> Milestone: ...
def create_project(
self, name: str, body: Union[str, _NotSetType] = ...
) -> Project: ...
def create_project(self, name: str, body: Union[str, _NotSetType] = ...) -> Project: ...
@overload
def create_pull(
self,
@@ -365,13 +353,9 @@ class Repository(CompletableGithubObject):
def forks_url(self) -> str: ...
@property
def full_name(self) -> str: ...
def get_archive_link(
self, archive_format: str, ref: Union[str, _NotSetType] = ...
) -> str: ...
def get_archive_link(self, archive_format: str, ref: Union[str, _NotSetType] = ...) -> str: ...
def get_artifact(self, artifact_id: int) -> Artifact: ...
def get_artifacts(
self, name: Union[str, _NotSetType] = ...
) -> PaginatedList[Artifact]: ...
def get_artifacts(self, name: Union[str, _NotSetType] = ...) -> PaginatedList[Artifact]: ...
def get_codescan_alerts(self) -> PaginatedList[CodeScanAlert]: ...
def get_assignees(self) -> PaginatedList[NamedUser]: ...
def get_autolinks(self) -> PaginatedList[Autolink]: ...
@@ -380,15 +364,9 @@ class Repository(CompletableGithubObject):
def get_branches(self) -> PaginatedList[Branch]: ...
def get_check_run(self, check_run_id: int) -> CheckRun: ...
def get_check_suite(self, check_suite_id: int) -> CheckSuite: ...
def get_clones_traffic(
self, per: Union[str, _NotSetType] = ...
) -> Dict[str, Union[int, List[Clones]]]: ...
def get_collaborator_permission(
self, collaborator: Union[str, NamedUser]
) -> str: ...
def get_collaborators(
self, affiliation: Union[str, _NotSetType] = ...
) -> PaginatedList[NamedUser]: ...
def get_clones_traffic(self, per: Union[str, _NotSetType] = ...) -> Dict[str, Union[int, List[Clones]]]: ...
def get_collaborator_permission(self, collaborator: Union[str, NamedUser]) -> str: ...
def get_collaborators(self, affiliation: Union[str, _NotSetType] = ...) -> PaginatedList[NamedUser]: ...
def get_comment(self, id: int) -> CommitComment: ...
def get_comments(self) -> PaginatedList[CommitComment]: ...
def get_commit(self, sha: str) -> Commit: ...
@@ -400,12 +378,8 @@ class Repository(CompletableGithubObject):
until: Union[_NotSetType, datetime] = ...,
author: Union[AuthenticatedUser, NamedUser, str, _NotSetType] = ...,
) -> PaginatedList[Commit]: ...
def get_contents(
self, path: str, ref: Union[str, _NotSetType] = ...
) -> Union[List[ContentFile], ContentFile]: ...
def get_contributors(
self, anon: Union[str, _NotSetType] = ...
) -> PaginatedList[NamedUser]: ...
def get_contents(self, path: str, ref: Union[str, _NotSetType] = ...) -> Union[List[ContentFile], ContentFile]: ...
def get_contributors(self, anon: Union[str, _NotSetType] = ...) -> PaginatedList[NamedUser]: ...
def get_deployment(self, id_: int) -> Deployment: ...
def get_deployments(
self,
@@ -414,9 +388,7 @@ class Repository(CompletableGithubObject):
task: Union[str, _NotSetType] = ...,
environment: Union[str, _NotSetType] = ...,
) -> PaginatedList[Deployment]: ...
def get_dir_contents(
self, path: str, ref: Union[str, _NotSetType] = ...
) -> List[ContentFile]: ...
def get_dir_contents(self, path: str, ref: Union[str, _NotSetType] = ...) -> List[ContentFile]: ...
def get_download(self, id: int) -> Download: ...
def get_downloads(self) -> PaginatedList[Download]: ...
def get_environments(self) -> PaginatedList[Environment]: ...
@@ -435,15 +407,11 @@ class Repository(CompletableGithubObject):
def get_git_ref(self, ref: str) -> GitRef: ...
def get_git_refs(self) -> PaginatedList[GitRef]: ...
def get_git_tag(self, sha: str) -> GitTag: ...
def get_git_tree(
self, sha: str, recursive: Union[bool, _NotSetType] = ...
) -> GitTree: ...
def get_git_tree(self, sha: str, recursive: Union[bool, _NotSetType] = ...) -> GitTree: ...
def get_hook(self, id: int) -> Hook: ...
def get_hooks(self) -> PaginatedList[Hook]: ...
def get_hook_delivery(self, hook_id: int, delivery_id: int) -> HookDelivery: ...
def get_hook_deliveries(
self, hook_id: int
) -> PaginatedList[HookDeliverySummary]: ...
def get_hook_deliveries(self, hook_id: int) -> PaginatedList[HookDeliverySummary]: ...
def get_issue(self, number: int) -> Issue: ...
def get_issues(
self,
@@ -488,9 +456,7 @@ class Repository(CompletableGithubObject):
before: Union[datetime, _NotSetType] = ...,
) -> PaginatedList[Notification]: ...
def get_pending_invitations(self) -> PaginatedList[Invitation]: ...
def get_projects(
self, state: Union[str, _NotSetType] = ...
) -> PaginatedList[Project]: ...
def get_projects(self, state: Union[str, _NotSetType] = ...) -> PaginatedList[Project]: ...
def get_public_key(self) -> PublicKey: ...
def get_pull(self, number: int) -> PullRequest: ...
def get_pulls(
@@ -533,9 +499,7 @@ class Repository(CompletableGithubObject):
def get_top_paths(self) -> List[Path]: ...
def get_top_referrers(self) -> List[Referrer]: ...
def get_topics(self) -> List[str]: ...
def get_views_traffic(
self, per: Union[str, _NotSetType] = ...
) -> Dict[str, Union[int, List[View]]]: ...
def get_views_traffic(self, per: Union[str, _NotSetType] = ...) -> Dict[str, Union[int, List[View]]]: ...
def get_vulnerability_alert(self) -> bool: ...
def get_watchers(self) -> PaginatedList[NamedUser]: ...
def get_workflow(self, id_or_name: Union[str, int]) -> Workflow: ...
@@ -601,9 +565,7 @@ class Repository(CompletableGithubObject):
def mark_notifications_as_read(self, last_read_at: datetime = ...) -> None: ...
@property
def master_branch(self) -> Optional[str]: ...
def merge(
self, base: str, head: str, commit_message: Union[str, _NotSetType] = ...
) -> Optional[Commit]: ...
def merge(self, base: str, head: str, commit_message: Union[str, _NotSetType] = ...) -> Optional[Commit]: ...
@property
def merges_url(self) -> str: ...
@property
@@ -637,12 +599,8 @@ class Repository(CompletableGithubObject):
@property
def releases_url(self) -> str: ...
def remove_autolink(self, autolink: Union[Autolink, int]) -> bool: ...
def remove_from_collaborators(
self, collaborator: Union[str, NamedUser]
) -> None: ...
def remove_self_hosted_runner(
self, runner: Union[SelfHostedActionsRunner, int]
) -> bool: ...
def remove_from_collaborators(self, collaborator: Union[str, NamedUser]) -> None: ...
def remove_self_hosted_runner(self, runner: Union[SelfHostedActionsRunner, int]) -> bool: ...
def remove_invitation(self, invite_id: int) -> None: ...
def replace_topics(self, topics: List[str]) -> None: ...
@property
@@ -657,9 +615,7 @@ class Repository(CompletableGithubObject):
def stargazers_url(self) -> str: ...
@property
def statuses_url(self) -> str: ...
def subscribe_to_hub(
self, event: str, callback: str, secret: Union[str, _NotSetType] = ...
) -> None: ...
def subscribe_to_hub(self, event: str, callback: str, secret: Union[str, _NotSetType] = ...) -> None: ...
@property
def subscribers_count(self) -> int: ...
@property
@@ -682,9 +638,7 @@ class Repository(CompletableGithubObject):
environment_name: str,
wait_timer: int = ...,
reviewers: List[ReviewerParams] = ...,
deployment_branch_policy: Optional[
EnvironmentDeploymentBranchPolicyParams
] = ...,
deployment_branch_policy: Optional[EnvironmentDeploymentBranchPolicyParams] = ...,
) -> Environment: ...
def update_file(
self,