From 2e83871d546b38509ecc172f70759422934f5ea9 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sat, 19 Sep 2026 18:52:28 -0700 Subject: [PATCH] test(guardrails): type the recorder hook's logging_obj as object --- .../chat/guardrail_translation/test_openai_guardrail_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/llms/openai/chat/guardrail_translation/test_openai_guardrail_handler.py b/tests/test_litellm/llms/openai/chat/guardrail_translation/test_openai_guardrail_handler.py index e60d26cda59..fe97d597ca1 100644 --- a/tests/test_litellm/llms/openai/chat/guardrail_translation/test_openai_guardrail_handler.py +++ b/tests/test_litellm/llms/openai/chat/guardrail_translation/test_openai_guardrail_handler.py @@ -1392,7 +1392,7 @@ class TestOpenAIChatCompletionsHandlerStreamingOutput: inputs: GenericGuardrailAPIInputs, request_data: dict, input_type: Literal["request", "response"], - logging_obj: Optional[Any] = None, + logging_obj: object = None, ) -> GenericGuardrailAPIInputs: self.seen_inputs.append(inputs) return inputs