Созданы stubs
This commit is contained in:
12
stubs/aiohttpx/transports/rate_limiter.pyi
Normal file
12
stubs/aiohttpx/transports/rate_limiter.pyi
Normal file
@ -0,0 +1,12 @@
|
||||
from httpx import Request
|
||||
from redis import Redis
|
||||
|
||||
from aiohttpx.responses import Response
|
||||
from aiohttpx.transports.aio import AiohttpTransport
|
||||
|
||||
class AsyncRateLimit(AiohttpTransport):
|
||||
def __init__(
|
||||
self, redis: Redis[bytes] | None, key: str | None, limit: int | None
|
||||
) -> None: ...
|
||||
async def request_is_limited(self) -> bool: ...
|
||||
async def handle_async_request(self, request: Request) -> Response: ...
|
||||
Reference in New Issue
Block a user