test(genai): use compatible readonly callback types
Some checks failed
Cost map pins recheck / rerun-cost-map-guard (push) Has been cancelled
LiteLLM Rust DB / db-queries (push) Has been cancelled
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Modules / fmt, validate, test (gcp) (push) Has been cancelled

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-11-12 01:59:08 +00:00
parent 025999dc48
commit 82cfa6fc08

View file

@ -10,11 +10,12 @@ import logging
import threading
from collections.abc import Iterator
from unittest.mock import AsyncMock, MagicMock, patch
from typing import Final, NotRequired, TypedDict
from typing import Final
import httpx
import pytest
import respx
from typing_extensions import NotRequired, ReadOnly, TypedDict
import litellm
from litellm._logging import verbose_logger
@ -353,14 +354,14 @@ _ANTHROPIC_SSE: Final = "".join(
class _CallbackParams(TypedDict):
litellm_session_id: NotRequired[str | None]
litellm_session_id: ReadOnly[NotRequired[str | None]]
class _CallbackKwargs(TypedDict):
call_type: str
litellm_call_id: str
litellm_params: _CallbackParams
standard_logging_object: StandardLoggingPayload
call_type: ReadOnly[str]
litellm_call_id: ReadOnly[str]
litellm_params: ReadOnly[_CallbackParams]
standard_logging_object: ReadOnly[StandardLoggingPayload]
class _LoggedEvents(CustomLogger):