From 8ee7591fc8065dfc92d528bab48866c0360e01ba Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 10:05:14 +0000 Subject: [PATCH] refactor(types): drop nonessential TypedDict docstrings Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/integrations/otel/logger.py | 2 +- litellm/proxy/guardrails/guardrail_hooks/alice/alice.py | 2 +- litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py | 2 +- .../proxy/guardrails/guardrail_hooks/promptguard/promptguard.py | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/litellm/integrations/otel/logger.py b/litellm/integrations/otel/logger.py index 607611eb971..6b673967427 100644 --- a/litellm/integrations/otel/logger.py +++ b/litellm/integrations/otel/logger.py @@ -142,7 +142,7 @@ def _request_trace_links(context: Context | None) -> tuple[Link, ...] | None: class _CustomLoggerOptions(TypedDict, total=False, extra_items=object): - """Keyword arguments forwarded untouched to ``CustomLogger`` and ``OpenTelemetryV2Config``.""" + pass class _LLMCallSpan: diff --git a/litellm/proxy/guardrails/guardrail_hooks/alice/alice.py b/litellm/proxy/guardrails/guardrail_hooks/alice/alice.py index da97359b299..bcc35e7a22f 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/alice/alice.py +++ b/litellm/proxy/guardrails/guardrail_hooks/alice/alice.py @@ -92,7 +92,7 @@ class AliceVerdict(TypedDict): class _CustomGuardrailOptions(TypedDict, total=False, extra_items=object): - """Base-class constructor options this guardrail forwards untouched to CustomGuardrail.""" + pass class AliceGuardrailMissingSecrets(Exception): diff --git a/litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py b/litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py index 14f60ce09a0..cc3ed7172b6 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py +++ b/litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py @@ -39,7 +39,7 @@ class _GraySwanMonitorResponse(TypedDict): class _CustomGuardrailOptions(TypedDict, total=False, extra_items=object): - """Base-class constructor options this guardrail forwards untouched to CustomGuardrail.""" + pass class _GraySwanMonitorHTTPResponse(Protocol): diff --git a/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py b/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py index 5ab47dfc3e1..f51f59ab0d1 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py +++ b/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py @@ -55,8 +55,6 @@ class PromptGuardHTTPView(TypedDict): class _CustomGuardrailOptions(ExtraItemsTypedDict, total=False, extra_items=object): - """Base-class constructor options this guardrail forwards untouched to CustomGuardrail.""" - supported_event_hooks: ReadOnly[list[GuardrailEventHooks] | None]