1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-17 22:45:08 +00:00

Added Sphinx documentation to the client.py file

This commit is contained in:
sudosnok 2022-05-01 17:31:14 +01:00
parent 2b557f9953
commit 0de6781a96
6 changed files with 199 additions and 26 deletions

View file

@ -242,7 +242,7 @@ class http:
raise MissingPermissions
raise RepositoryNotFound
async def delete_gist(self, gist_id: int) -> Optional[str]:
async def delete_gist(self, gist_id: str) -> Optional[str]:
"""Deletes a Gist from the given gist id."""
result = await self.session.delete(GIST_URL.format(gist_id))
if result.status == 204:
@ -258,7 +258,7 @@ class http:
return await result.json()
raise OrganizationNotFound
async def get_gist(self, gist_id: int) -> Dict[str, Union[str, int]]:
async def get_gist(self, gist_id: str) -> Dict[str, Union[str, int]]:
"""Returns a gist's raw JSON from the given gist id."""
result = await self.session.get(GIST_URL.format(gist_id))
if 200 <= result.status <= 299: