From cad7916da6cf7317d95ed4ef59c7fce2aef10d99 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Sat, 25 Jun 2022 14:13:47 +0300 Subject: [PATCH] Fixed HTTPClient not recognizing passed kwargs --- github/internals/http.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/github/internals/http.py b/github/internals/http.py index 0be6316..76c9a6e 100644 --- a/github/internals/http.py +++ b/github/internals/http.py @@ -93,14 +93,9 @@ class HTTPClient: _last_ping: float _latency: float - def __new__( - cls, - *, - headers: Optional[Dict[str, Union[str, int]]] = None, - auth: Optional[BasicAuth] = None, - ) -> Awaitable[Self]: + def __new__(cls, **kwargs) -> Awaitable[Self]: # Basically async def __init__ - return cls.__async_init() + return cls.__async_init(**kwargs) @classmethod async def __async_init(