From 7c973ee06337f2c3cefaae3b91cc90c9ab6cddee Mon Sep 17 00:00:00 2001 From: Ben Chuanlong Du Date: Fri, 1 May 2026 00:54:16 +0000 Subject: [PATCH 1/3] fix bug --- github_rest_api/github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github_rest_api/github.py b/github_rest_api/github.py index f6d4db3..d12ccf1 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,7 +273,7 @@ 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]: """Delete a branch from this repository. From f08f6185f2a5632865809c447f2e96b4fa880e82 Mon Sep 17 00:00:00 2001 From: Ben Chuanlong Du Date: Fri, 1 May 2026 00:54:57 +0000 Subject: [PATCH 2/3] bump up version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } ] From a55ed8f736232ff9a3041987141388fed18cbee6 Mon Sep 17 00:00:00 2001 From: Ben Du Date: Thu, 30 Apr 2026 18:49:45 -0700 Subject: [PATCH 3/3] fix return type --- github_rest_api/github.py | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/github_rest_api/github.py b/github_rest_api/github.py index d12ccf1..6245764 100644 --- a/github_rest_api/github.py +++ b/github_rest_api/github.py @@ -275,7 +275,7 @@ def delete_ref(self, ref: str) -> requests.Response: url=f"{self._url_refs}/{ref}", ) - 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/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" },