We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
loop
HttpxHTTPClient
1 parent 39147b3 commit 3a0e156Copy full SHA for 3a0e156
1 file changed
solvedac_community/HTTPClients/httpx_client.py
@@ -27,8 +27,8 @@
27
class HttpxHTTPClient(AbstractHTTPClient):
28
USER_AGENT: ClassVar[str] = "Mozilla/5.0"
29
30
- def __init__(self, loop: asyncio.AbstractEventLoop, solvedac_token: Optional[str] = None) -> None:
31
- self.loop: asyncio.AbstractEventLoop = loop
+ def __init__(self, solvedac_token: Optional[str] = None) -> None:
+ self.loop: asyncio.AbstractEventLoop = asyncio.get_event_loop()
32
self.lock: asyncio.Lock = asyncio.Lock()
33
self.solvedac_token: Union[str, None] = solvedac_token
34
0 commit comments