Closed mdczaplicki closed 14 hours ago
It is a fallback in older runtimes: https://github.com/aio-libs/aiohttp/blob/4928ae3/setup.cfg#L54 / https://github.com/aio-libs/aiohttp/blob/4928ae3/aiohttp/client_ws.py#L28. The stdlib is always preferred when available.
This is not a software bug but a documentation issue. Anyway, you shouldn't be relying on transitive dependencies — it's wrong from the packaging perspective. If you use something directly from your code base, that's your direct dependency and you should treat it as such instead of hoping that something else will bring it in occasionally.
Of course I shouldn't be relying, but that's why I've found it 😁 I've already switched to native. I've just thought that I'll let you know. Thanks!
Describe the bug
The documentation mentions that
async_timeout
is one of the dependencies ofaiohttp
, but it's not.https://docs.aiohttp.org/en/stable/#dependencies
To Reproduce
aiohttp==3.9.5
import async_timeout
Expected behavior
Works
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
x
Related component
Client
Additional context
No response
Code of Conduct