From ce0ec92103b912ab45a73b3ab8e81f71a3ae0ed7 Mon Sep 17 00:00:00 2001 From: VarMonke Date: Wed, 27 Apr 2022 12:25:25 +0530 Subject: [PATCH] Fix client name --- Github/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Github/main.py b/Github/main.py index d7725d8..391e7cc 100644 --- a/Github/main.py +++ b/Github/main.py @@ -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'' + return f'<{self.__class__.__name__}; has_auth={bool(self._auth)}>' def __del__(self): asyncio.create_task(self.http.session.close())