mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
fix(voyage): drop redundant isinstance list check to satisfy basedpyright budget
This commit is contained in:
parent
a1be423632
commit
8c8cd890ad
1 changed files with 2 additions and 2 deletions
|
|
@ -152,9 +152,9 @@ class VoyageContextualEmbeddingConfig(BaseEmbeddingConfig):
|
|||
return [input], {} # mutable-ok: fresh list returned to caller
|
||||
return [input], cls._auto_chunk_params(optional_params) # mutable-ok: fresh list returned to caller
|
||||
|
||||
if isinstance(input, list) and all(isinstance(i, str) for i in input):
|
||||
if all(isinstance(i, str) for i in input):
|
||||
if optional_params.get("input_type") == "query":
|
||||
return input, {} # pyright: ignore[reportReturnType] # narrowed to list[str] by isinstance+all check
|
||||
return input, {} # pyright: ignore[reportReturnType] # narrowed to list[str] by all(isinstance) check
|
||||
return input, cls._auto_chunk_params(optional_params) # pyright: ignore[reportReturnType] # narrowed to list[str]
|
||||
|
||||
return input, {} # pyright: ignore[reportReturnType] # list[list[str]] branch
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue