From ccfdc915cbc04838cf93416b4087596e924f7044 Mon Sep 17 00:00:00 2001 From: factnn <166481866+factnn@users.noreply.github.com> Date: Sun, 21 Jun 2026 15:58:29 +0800 Subject: [PATCH] fix: use list instead of typing.List for ruff UP006 --- litellm/llms/mistral/chat/transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/mistral/chat/transformation.py b/litellm/llms/mistral/chat/transformation.py index 8daddde19de..7d5602acd2d 100644 --- a/litellm/llms/mistral/chat/transformation.py +++ b/litellm/llms/mistral/chat/transformation.py @@ -300,7 +300,7 @@ class MistralConfig(OpenAIGPTConfig): return self._strip_extra_fields(messages) @staticmethod - def _strip_extra_fields(messages: List[AllMessageValues]) -> List[AllMessageValues]: + def _strip_extra_fields(messages: list[AllMessageValues]) -> list[AllMessageValues]: for m in messages: if isinstance(m, dict): m.pop("metadata", None)