From 4eddc3705ae9bae399212353677c06fe5b1131bc Mon Sep 17 00:00:00 2001 From: Lavya Tandel Date: Mon, 10 Aug 2026 23:12:00 +0530 Subject: [PATCH] fix(router): use read-only type annotations to satisfy LIT001 --- litellm/router.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litellm/router.py b/litellm/router.py index d75dd4ac284..c7a1215e8f8 100644 --- a/litellm/router.py +++ b/litellm/router.py @@ -10422,11 +10422,11 @@ class Router: async def _pre_call_checks_async( self, model: str, - healthy_deployments: list, - messages: list[dict[str, str]] | None = None, - input: str | list | None = None, - request_kwargs: dict | None = None, - ) -> list[dict]: + healthy_deployments: Sequence[Mapping[str, Any]], + messages: Sequence[Mapping[str, str]] | None = None, + input: str | Sequence[Any] | None = None, + request_kwargs: Mapping[str, Any] | None = None, + ) -> Sequence[Mapping[str, Any]]: """ Async wrapper around _pre_call_checks_sync.