There was an error while loading. Please reload this page.
1 parent 00ba456 commit 656215bCopy full SHA for 656215b
1 file changed
aiohttp_client_middlewares/rate_limit.py
@@ -213,7 +213,8 @@ async def __call__(
213
# attribute at all, so the limiter waits without a budget there.
214
# The annotation keeps the value type-checked even though the
215
# attribute cannot be resolved statically on 3.12 to 3.14. Dropping
216
- # the getattr() is gated on raising the floor to 3.15.
+ # the getattr() is gated on raising the floor to 3.15; that change
217
+ # is ready in #23 and waits only on the aiohttp release.
218
client_timeout: ClientTimeout | None = getattr(request, "timeout", None)
219
await limiter.wait(None if client_timeout is None else client_timeout.total)
220
return await handler(request)
0 commit comments