mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix: use list instead of typing.List for ruff UP006
This commit is contained in:
parent
d600d7a668
commit
ccfdc915cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue