From bb74e4e5622b7d54ef4dbd6c4b5f81662a0a4922 Mon Sep 17 00:00:00 2001 From: Sudhi Seshachala Date: Mon, 24 Aug 2026 16:41:48 -0500 Subject: [PATCH] chore: annotate **kwargs to satisfy ANN003 strict rule Removing 'Any' in the prior commit left **kwargs untyped, which tripped ANN003 (missing type annotation on **kwargs). Using 'object' threads the strict-rule budget cleanly. --- litellm/proxy/guardrails/guardrail_hooks/conduct/conduct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/guardrails/guardrail_hooks/conduct/conduct.py b/litellm/proxy/guardrails/guardrail_hooks/conduct/conduct.py index d0be99dbb02..687a58d56c6 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/conduct/conduct.py +++ b/litellm/proxy/guardrails/guardrail_hooks/conduct/conduct.py @@ -137,7 +137,7 @@ class ConductGuardrail(CustomGuardrail): fail_mode: FailMode = "fail_closed", tool_name: str = "llm_call", timeout: float = 8.0, - **kwargs, + **kwargs: object, ) -> None: kwargs.setdefault("supported_event_hooks", list(self.get_supported_event_hooks())) super().__init__(**kwargs)