litellm/tests/e2e/logging
Cursor Agent 578eb2128d
fix(e2e): resolve basedpyright errors in logging_client
Two zero-error gate regressions from PR #32857:

- completion_response_id relied on json.loads (returns Any) and dict.get on
  an unnarrowed dict, which triggered reportAny and reportUnknownVariableType.
  Route the parse through a TypeAdapter[dict[str, object]] so parsed and
  raw are typed and validation errors funnel through ValidationError.
- LangfuseListParams(...) was constructed with the field-name kwargs
  trace_id and from_start_time, but pydantic's Field alias narrows the
  generated __init__ to traceId and fromStartTime; basedpyright flagged
  those calls as reportCallIssue. Pass the aliased names; populate_by_name
  plus by_alias serialization keep runtime identical.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
2026-07-11 20:07:48 +00:00
..
conftest.py test(e2e): cover Langfuse logging.yaml P0 logs_spend cells (#32857) 2026-07-11 14:11:00 -04:00
logging_client.py fix(e2e): resolve basedpyright errors in logging_client 2026-07-11 20:07:48 +00:00
test_langfuse_e2e.py test(e2e): cover Langfuse logging.yaml P0 logs_spend cells (#32857) 2026-07-11 14:11:00 -04:00
test_prometheus_cardinality_e2e.py test(e2e): close coverage gaps across chat/responses, provider features, batches, prometheus, and langfuse eviction (#32165) 2026-07-04 18:56:52 -07:00