Files
rag-manager/typings/httpx.pyi
2025-09-21 01:38:47 +00:00

25 lines
722 B
Python

"""Type stubs for httpx library."""
from __future__ import annotations
class Response:
"""HTTP response object."""
def raise_for_status(self) -> None: ...
def json(self) -> dict[str, object]: ...
class AsyncClient:
"""Async HTTP client."""
def __init__(
self, *, timeout: float | None = None, headers: dict[str, str] | None = None
) -> None: ...
async def get(
self, url: str, *, params: dict[str, object] | dict[str, int] | None = None
) -> Response: ...
async def post(self, url: str, *, json: dict[str, object] | None = None) -> Response: ...
async def aclose(self) -> None: ...
# Make AsyncClient available for import
__all__ = ["AsyncClient", "Response"]