mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-17 22:45:08 +00:00
Fixed HTTPClient not recognizing passed kwargs
This commit is contained in:
parent
b23d5b78eb
commit
cad7916da6
1 changed files with 2 additions and 7 deletions
|
@ -93,14 +93,9 @@ class HTTPClient:
|
||||||
_last_ping: float
|
_last_ping: float
|
||||||
_latency: float
|
_latency: float
|
||||||
|
|
||||||
def __new__(
|
def __new__(cls, **kwargs) -> Awaitable[Self]:
|
||||||
cls,
|
|
||||||
*,
|
|
||||||
headers: Optional[Dict[str, Union[str, int]]] = None,
|
|
||||||
auth: Optional[BasicAuth] = None,
|
|
||||||
) -> Awaitable[Self]:
|
|
||||||
# Basically async def __init__
|
# Basically async def __init__
|
||||||
return cls.__async_init()
|
return cls.__async_init(**kwargs)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def __async_init(
|
async def __async_init(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue