Созданы 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

33
stubs/aiohttpx/client.pyi Normal file
View File

@ -0,0 +1,33 @@
from collections.abc import Callable, Mapping
from ssl import SSLContext
from typing import Any
from httpx import URL, Limits
from httpx import AsyncClient as AsyncHTTPXClient
from httpx import _types as t # type: ignore
class AioHTTPXClient(AsyncHTTPXClient):
def __init__(
self,
*,
auth: t.AuthTypes | None = ...,
params: t.QueryParamTypes | None = ...,
headers: t.HeaderTypes | None = ...,
cookies: t.CookieTypes | None = ...,
verify: SSLContext | str | bool = ...,
cert: t.CertTypes | None = ...,
proxy: t.ProxyTypes | None = ...,
timeout: t.TimeoutTypes = ...,
follow_redirects: bool = ...,
limits: Limits = ...,
max_redirects: int = ...,
event_hooks: Mapping[str, list[Callable[..., Any]]] | None = ...,
base_url: URL | str = ...,
trust_env: bool = ...,
default_encoding: str | Callable[[bytes], str] = ...,
redis_url: str | None = ...,
key: str | None = ...,
limit: int | None = ...,
) -> None: ...
__all__ = ['AioHTTPXClient']