fix(logging): satisfy callback constructor type gate

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-14 20:12:16 +00:00
parent 10d7cdd0a8
commit 0bcea2dcfe

View file

@ -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