diff --git a/github/Repository.pyi b/github/Repository.pyi index 92cbac66..64761478 100644 --- a/github/Repository.pyi +++ b/github/Repository.pyi @@ -259,6 +259,8 @@ class Repository(CompletableGithubObject): author: Union[InputGitAuthor, _NotSetType] = ..., ) -> Dict[str, Union[Commit, _NotSetType]]: ... @property + def delete_branch_on_merge(self) -> bool: ... + @property def deployments_url(self) -> str: ... @property def description(self) -> str: ... @@ -331,7 +333,7 @@ class Repository(CompletableGithubObject): def get_contributors( self, anon: Union[str, _NotSetType] = ... ) -> PaginatedList[NamedUser]: ... - def get_deployment(self, id_: int) -> Any: ... + def get_deployment(self, id_: int) -> Deployment: ... def get_deployments( self, sha: Union[str, _NotSetType] = ..., @@ -351,6 +353,7 @@ class Repository(CompletableGithubObject): ) -> Repository: ... def get_git_blob(self, sha: str) -> GitBlob: ... def get_git_commit(self, sha: str) -> GitCommit: ... + def get_git_matching_refs(self, ref: str) -> PaginatedList[GitRef]: ... def get_git_ref(self, ref: str) -> GitRef: ... def get_git_refs(self) -> PaginatedList[GitRef]: ... def get_git_tag(self, sha: str) -> GitTag: ...