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:
parent
2b557f9953
commit
0de6781a96
6 changed files with 199 additions and 26 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue