community: Bump ruff version to 0.9 (#29206)

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
Christophe Bornet
2025-02-08 02:21:10 +01:00
committed by GitHub
parent 30f6c9f5c8
commit 723031d548
166 changed files with 5415 additions and 530 deletions

View File

@@ -166,19 +166,19 @@ class OpenVINOEmbeddings(BaseModel, Embeddings):
import numpy as np
except ImportError as e:
raise ImportError(
"Unable to import numpy, please install with " "`pip install -U numpy`."
"Unable to import numpy, please install with `pip install -U numpy`."
) from e
try:
from tqdm import trange
except ImportError as e:
raise ImportError(
"Unable to import tqdm, please install with " "`pip install -U tqdm`."
"Unable to import tqdm, please install with `pip install -U tqdm`."
) from e
try:
import torch
except ImportError as e:
raise ImportError(
"Unable to import torch, please install with " "`pip install -U torch`."
"Unable to import torch, please install with `pip install -U torch`."
) from e
def run_mean_pooling(model_output: Any, attention_mask: Any) -> Any: