Skip to content

Commit 7c973ee

Browse files
committed
fix bug
1 parent 68a0714 commit 7c973ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github_rest_api/github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,15 @@ 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

278278
def delete_branch(self, branch: str) -> dict[str, Any]:
279279
"""Delete a branch from this repository.

0 commit comments

Comments
 (0)