mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 15:03:21 +00:00
infra: add -p to mkdir in lint steps (#17013)
Previously, if this did not find a mypy cache then it wouldnt run this makes it always run adding mypy ignore comments with existing uncaught issues to unblock other prs --------- Co-authored-by: Erick Friis <erick@langchain.dev> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
@@ -7,8 +7,8 @@ def test_baichuan_embedding_documents() -> None:
|
||||
documents = ["今天天气不错", "今天阳光灿烂"]
|
||||
embedding = BaichuanTextEmbeddings()
|
||||
output = embedding.embed_documents(documents)
|
||||
assert len(output) == 2
|
||||
assert len(output[0]) == 1024
|
||||
assert len(output) == 2 # type: ignore[arg-type]
|
||||
assert len(output[0]) == 1024 # type: ignore[index]
|
||||
|
||||
|
||||
def test_baichuan_embedding_query() -> None:
|
||||
@@ -16,4 +16,4 @@ def test_baichuan_embedding_query() -> None:
|
||||
document = "所有的小学生都会学过只因兔同笼问题。"
|
||||
embedding = BaichuanTextEmbeddings()
|
||||
output = embedding.embed_query(document)
|
||||
assert len(output) == 1024
|
||||
assert len(output) == 1024 # type: ignore[arg-type]
|
||||
|
Reference in New Issue
Block a user