From 96dd9a59cec08fbe23804e90fccbbf9b911fc05e Mon Sep 17 00:00:00 2001 From: Tufail Akram <72789060+akram1089@users.noreply.github.com> Date: Fri, 2 Oct 2026 15:12:25 +0530 Subject: [PATCH] fix: satisfy LIT006 on audit log task registry by documenting the required cast --- litellm/proxy/management_helpers/audit_logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/management_helpers/audit_logs.py b/litellm/proxy/management_helpers/audit_logs.py index 5d9142d4ebc..30202bd238a 100644 --- a/litellm/proxy/management_helpers/audit_logs.py +++ b/litellm/proxy/management_helpers/audit_logs.py @@ -134,7 +134,7 @@ class AuditTaskRegistry: self._pending_tasks: Final[set[asyncio.Task[object]]] = set() # mutable-ok: background task tracking def track(self, task: asyncio.Task[_T]) -> asyncio.Task[_T]: - task_object: Final[asyncio.Task[object]] = cast(asyncio.Task[object], task) + task_object: Final[asyncio.Task[object]] = cast(asyncio.Task[object], task) # noqa: LIT006 # Type cast required for tracking generic asyncio task state if task_object.done() or task_object in self._pending_tasks: return task self._pending_tasks.add(task_object)