Skip to content

Commit 6799c7d

Browse files
authored
Merge pull request #60 from legendu-net/dev
Merge dev Into main
2 parents cf72aeb + a55ed8f commit 6799c7d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

github_rest_api/github.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,17 +265,17 @@ def delete(self) -> requests.Response:
265265
"""Delete this repository from GitHub."""
266266
return self._delete(url=self._url_repo)
267267

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

278-
def delete_branch(self, branch: str) -> dict[str, Any]:
278+
def delete_branch(self, branch: str) -> requests.Response:
279279
"""Delete a branch from this repository.
280280
:param branch: The branch to delete from this repository.
281281
"""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = [ "hatchling" ]
44

55
[project]
66
name = "github-rest-api"
7-
version = "0.34.0"
7+
version = "0.34.1"
88
description = "Simple wrapper of GitHub REST APIs."
99
readme = "README.md"
1010
authors = [ { name = "Ben Du", email = "longendu@yahoo.com" } ]

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)