diff --git a/github_rest_api/github.py b/github_rest_api/github.py index 4a07a58..988a5d2 100644 --- a/github_rest_api/github.py +++ b/github_rest_api/github.py @@ -255,8 +255,9 @@ def get_branches(self) -> list[dict[str, Any]]: """List branches in this repository.""" return self._get(url=self._url_branches).json() - def delete(self, ref: str) -> dict[str, str]: - return self._delete(url=self._url_repo).json() + 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]: """Delete a reference from this repository. diff --git a/pyproject.toml b/pyproject.toml index 6ffd289..292ff52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = [ "hatchling" ] [project] name = "github-rest-api" -version = "0.33.0" +version = "0.33.1" description = "Simple wrapper of GitHub REST APIs." readme = "README.md" authors = [ { name = "Ben Du", email = "longendu@yahoo.com" } ]