diff --git a/github_rest_api/github.py b/github_rest_api/github.py index f6d4db3..6245764 100644 --- a/github_rest_api/github.py +++ b/github_rest_api/github.py @@ -265,7 +265,7 @@ 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. """ @@ -273,9 +273,9 @@ def delete_ref(self, ref: str) -> dict[str, Any]: 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. """ diff --git a/pyproject.toml b/pyproject.toml index e13b244..1917850 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" } ] diff --git a/uv.lock b/uv.lock index f294986..6165b2e 100644 --- a/uv.lock +++ b/uv.lock @@ -195,7 +195,7 @@ wheels = [ [[package]] name = "github-rest-api" -version = "0.34.0" +version = "0.34.1" source = { editable = "." } dependencies = [ { name = "dulwich" },