From abaaf8b210b1b4717cac93a12684bb064464fd22 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Thu, 27 Aug 2026 11:18:01 +0000 Subject: [PATCH] fix(proxy): leave the deferred-logging flush parameter untyped Typing logging_obj as the concrete Logging class makes basedpyright see the _enqueue_deferred_logging reset as a protected access from outside the class, pushing reportPrivateUsage one over the tree-wide budget. The tests pin that attribute on a mock, so the reset has to stay a direct write on the passed object. Restore the parameter annotation this file already had. --- litellm/proxy/common_request_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/common_request_processing.py b/litellm/proxy/common_request_processing.py index 8fb01a6a766..315fbcba310 100644 --- a/litellm/proxy/common_request_processing.py +++ b/litellm/proxy/common_request_processing.py @@ -3018,7 +3018,7 @@ class ProxyBaseLLMRequestProcessing: @staticmethod def _flush_deferred_async_logging( - logging_obj: LiteLLMLoggingObj, + logging_obj: Any, exception_raised: bool, ) -> None: """