Skip to content

Commit 656215b

Browse files
Point the getattr comment at the follow-up PR
The 3.15 change Dreamsorcerer asked for is written and verified in #23; it waits only on the aiohttp release, so the comment says where it is.
1 parent 00ba456 commit 656215b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎aiohttp_client_middlewares/rate_limit.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ async def __call__(
213213
# attribute at all, so the limiter waits without a budget there.
214214
# The annotation keeps the value type-checked even though the
215215
# attribute cannot be resolved statically on 3.12 to 3.14. Dropping
216-
# the getattr() is gated on raising the floor to 3.15.
216+
# 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.
217218
client_timeout: ClientTimeout | None = getattr(request, "timeout", None)
218219
await limiter.wait(None if client_timeout is None else client_timeout.total)
219220
return await handler(request)

0 commit comments

Comments
 (0)