Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions github_rest_api/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,17 +265,17 @@ def delete(self) -> requests.Response:
"""Delete this repository from GitHub."""
return self._delete(url=self._url_repo)

def delete_ref(self, ref: str) -> dict[str, Any]:
def delete_ref(self, ref: str) -> requests.Response:
"""Delete a reference from this repository.
:param ref: The reference to delete from this repository.
"""
if not isinstance(ref, str):
raise ValueError("A string value is required for `ref`.")
return self._delete(
url=f"{self._url_refs}/{ref}",
).json()
)

def delete_branch(self, branch: str) -> dict[str, Any]:
def delete_branch(self, branch: str) -> requests.Response:
"""Delete a branch from this repository.
:param branch: The branch to delete from this repository.
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = [ "hatchling" ]

[project]
name = "github-rest-api"
version = "0.34.0"
version = "0.34.1"
description = "Simple wrapper of GitHub REST APIs."
readme = "README.md"
authors = [ { name = "Ben Du", email = "longendu@yahoo.com" } ]
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading