From 75f926da362864c5d65da859d8420d0944855066 Mon Sep 17 00:00:00 2001 From: yucheng Date: Fri, 18 Sep 2026 08:06:12 +0000 Subject: [PATCH] fix(otel v2): type the operator sink scope pairs so the widest scope reduction stays Literal Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/integrations/otel/plumbing/providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/integrations/otel/plumbing/providers.py b/litellm/integrations/otel/plumbing/providers.py index bc82acccdf4..c43c49141e5 100644 --- a/litellm/integrations/otel/plumbing/providers.py +++ b/litellm/integrations/otel/plumbing/providers.py @@ -1150,7 +1150,7 @@ def operator_sink_scopes(*configs: OpenTelemetryV2Config) -> 'Mapping[_SinkKey, and so is one that never reaches the wire: a console kind ignores the endpoint, and a header-gated spec with no credentials is skipped when the provider is built. """ - scoped: Final = tuple( + scoped: Final[tuple[tuple[_SinkKey, OtelSpanScope], ...]] = tuple( (key, _operator_scope(config, spec)) for config in configs for spec in config.exporters