caelum0x 4847e35451 OpenJev: open-source typed decision service
Typed decision/classification service with an in-process gte-small ONNX
embedding engine and lexical fallback, JS/Python SDKs, adapters, and the
otsone model family. Apache-2.0 (sub-packages keep their MIT licenses).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 00:12:36 +03:00

14 lines
791 B
Python

import httpx2
from tenacity import AsyncRetrying
from openjev import TypeSafeClient
def invalid_arguments(client: TypeSafeClient) -> None:
client.system_one(None, {}) # E: Argument `None` is not assignable to parameter `state`
TypeSafeClient(api_key="test", retry=AsyncRetrying()) # E: Argument `AsyncRetrying` is not assignable to parameter `retry`
TypeSafeClient(api_key="test", http_client=httpx2.AsyncClient()) # E: Argument `AsyncClient` is not assignable to parameter `http_client`
client.system_one("x", {}, retry=AsyncRetrying()) # E: Argument `AsyncRetrying` is not assignable to parameter `retry`
client.system_one("x", {}, response_model=int) # E: No matching overload
client.system_one("x", {}, response_model=object()) # E: No matching overload