1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-19 15:35:08 +00:00

Fix client name

This commit is contained in:
VarMonke 2022-04-27 12:25:25 +05:30
parent 6417a3592c
commit ce0ec92103

View file

@ -25,7 +25,7 @@ class GHClient:
self,
*,
username: Union[str, None] = None,
token: str | None = None,
token: Union[str, None] = None,
user_cache_size: int = 30,
repo_cache_size: int = 15,
custom_headers: dict[str, Union[str, int]] = {}
@ -44,7 +44,7 @@ class GHClient:
return self.start().__await__()
def __repr__(self) -> str:
return f'<Github Client; has_auth={bool(self._auth)}>'
return f'<{self.__class__.__name__}; has_auth={bool(self._auth)}>'
def __del__(self):
asyncio.create_task(self.http.session.close())