Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classifiers = [
]
dependencies = [
"aiohttp >=3.13.0",
"anyio >=4.10.0",
"cyares[aiohttp,anyio,idna] >=0.4.0",
"distributed >=2026.1.1",
"filelock >=3.20.0",
"hishel[fastapi,httpx,requests] >=1.1.5",
Expand Down
4 changes: 4 additions & 0 deletions src/mahoraga/_core/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

import aiohttp
import anyio
import cyares.aiohttp
import hishel.httpx
import httpx
import httpx_aiohttp
Expand Down Expand Up @@ -225,6 +226,9 @@ def get_client(self) -> aiohttp.ClientSession:
keepalive_timeout=self.limits.keepalive_expiry,
ssl=self.ssl_context,
local_addr=(self.local_address, 0) if self.local_address else None,
resolver=cyares.aiohttp.CyAresResolver(
loop=asyncio.get_running_loop(),
),
)
if _logger.isEnabledFor(logging.INFO):
trace_config = aiohttp.TraceConfig()
Expand Down