22 lines
562 B
Python
22 lines
562 B
Python
from collections.abc import Callable
|
|
from typing import Any
|
|
|
|
import httpx
|
|
|
|
from .errors import OpenAPIFirstError
|
|
|
|
class OpenAPIClientError(OpenAPIFirstError): ...
|
|
|
|
class OpenAPIClient:
|
|
spec: dict[str, Any]
|
|
base_url: str
|
|
client: httpx.Client
|
|
def __init__(
|
|
self,
|
|
spec: dict[str, Any],
|
|
base_url: str | None = ...,
|
|
client: httpx.Client | None = ...,
|
|
) -> None: ...
|
|
def __getattr__(self, name: str) -> Callable[..., httpx.Response]: ...
|
|
def operations(self) -> dict[str, Callable[..., httpx.Response]]: ...
|