From b21b90a7fb997866a0917f6972df6b608ffc819b Mon Sep 17 00:00:00 2001 From: aniket-kardile Date: Tue, 14 Jul 2026 21:40:45 +0530 Subject: [PATCH] fix linting --- .../proxy/guardrails/guardrail_hooks/singulr/singulr.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/litellm/proxy/guardrails/guardrail_hooks/singulr/singulr.py b/litellm/proxy/guardrails/guardrail_hooks/singulr/singulr.py index b168cf181dc..4c2158cb70c 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/singulr/singulr.py +++ b/litellm/proxy/guardrails/guardrail_hooks/singulr/singulr.py @@ -243,12 +243,9 @@ class SingulrGuardrail(CustomGuardrail): tool_calls: list[_SingulrToolCall] = [] if raw_tool_calls and isinstance(raw_tool_calls[0], ChatCompletionMessageToolCall): - tool_calls = cast(list[_SingulrToolCall], raw_tool_calls) # noqa: LIT006 # Type casting for tool call validation + tool_calls = raw_tool_calls elif raw_tool_calls: - tool_calls = cast( # noqa: LIT006 # Complex nested cast for tool call reconstruction - list[_SingulrToolCall], - self.reconstruct_tool_calls(cast(list[ChatCompletionToolCallChunk], raw_tool_calls)), - ) + tool_calls = self.reconstruct_tool_calls(raw_tool_calls) singulr_request = SingulrGuardrailRequest( model=inputs.get("model") or request_data.get("model"),