mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-21 10:31:23 +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:
@@ -305,7 +305,7 @@ class FAISS(VectorStore):
|
||||
if filter is not None:
|
||||
if isinstance(filter, dict):
|
||||
|
||||
def filter_func(metadata):
|
||||
def filter_func(metadata): # type: ignore[no-untyped-def]
|
||||
if all(
|
||||
metadata.get(key) in value
|
||||
if isinstance(value, list)
|
||||
@@ -607,7 +607,7 @@ class FAISS(VectorStore):
|
||||
filtered_indices = []
|
||||
if isinstance(filter, dict):
|
||||
|
||||
def filter_func(metadata):
|
||||
def filter_func(metadata): # type: ignore[no-untyped-def]
|
||||
if all(
|
||||
metadata.get(key) in value
|
||||
if isinstance(value, list)
|
||||
|
Reference in New Issue
Block a user