14 lines
516 B
Python
14 lines
516 B
Python
from typing import Any, Callable, Dict, Optional
|
|
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: Optional[str] = ..., client: Optional[httpx.Client] = ...) -> None: ...
|
|
def __getattr__(self, name: str) -> Callable[..., httpx.Response]: ...
|
|
def operations(self) -> Dict[str, Callable[..., httpx.Response]]: ...
|