Созданы stubs

This commit is contained in:
2025-10-26 14:19:34 +03:00
parent 15990c82df
commit e380eda03a
8 changed files with 110 additions and 1 deletions

View File

@ -0,0 +1,31 @@
from types import TracebackType
from typing import Any, Self
import aiohttp
import httpx
from aiohttpx.responses import Response
EXCEPTIONS = ...
class AiohttpTransport(httpx.AsyncBaseTransport):
def __init__(
self, session: aiohttp.ClientSession | None = ...
) -> None: ...
def map_aiohttp_exception(
self, exc: Exception
) -> httpx.TimeoutException | httpx.HTTPError: ...
async def __aenter__(self) -> Self: ...
async def __aexit__(
self,
exc_type: type[BaseException] | None = ...,
exc_value: BaseException | None = ...,
traceback: TracebackType | None = ...,
) -> None: ...
async def aclose(self) -> None: ...
async def handle_async_request(
self, request: httpx.Request
) -> Response: ...
async def make_request(
self, method: str, url: str, headers: dict[str, Any], data: bytes
) -> Response: ...