mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-19 23:45:09 +00:00
Fix client name
This commit is contained in:
parent
6417a3592c
commit
ce0ec92103
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ class GHClient:
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
username: Union[str, None] = None,
|
username: Union[str, None] = None,
|
||||||
token: str | None = None,
|
token: Union[str, None] = None,
|
||||||
user_cache_size: int = 30,
|
user_cache_size: int = 30,
|
||||||
repo_cache_size: int = 15,
|
repo_cache_size: int = 15,
|
||||||
custom_headers: dict[str, Union[str, int]] = {}
|
custom_headers: dict[str, Union[str, int]] = {}
|
||||||
|
@ -44,7 +44,7 @@ class GHClient:
|
||||||
return self.start().__await__()
|
return self.start().__await__()
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
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):
|
def __del__(self):
|
||||||
asyncio.create_task(self.http.session.close())
|
asyncio.create_task(self.http.session.close())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue