From 0bcea2dcfe3c56ce1997f8a8eb9ceb2965088112 Mon Sep 17 00:00:00 2001 From: yucheng Date: Mon, 14 Sep 2026 20:12:16 +0000 Subject: [PATCH] fix(logging): satisfy callback constructor type gate Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/litellm_core_utils/litellm_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py index 9b672a184e9..174fbbdb78a 100644 --- a/litellm/litellm_core_utils/litellm_logging.py +++ b/litellm/litellm_core_utils/litellm_logging.py @@ -4300,7 +4300,7 @@ def _construct_custom_logger_compatible_class( custom_logger_init_args: dict | None = None, # mutable-ok: callback constructor API ) -> CustomLogger | None: try: - resolved_custom_logger_init_args: Final[dict] = ( # mutable-ok: callback constructor API + custom_logger_init_args = ( # rebind-ok: callback constructors require normalized kwargs custom_logger_init_args or {} ) if logging_integration == "agentops": # Add AgentOps initialization