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

Fixed HTTPClient not recognizing passed kwargs

This commit is contained in:
RGBCube 2022-06-25 14:13:47 +03:00
parent b23d5b78eb
commit cad7916da6

View file

@ -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(