From 26339ef18893762bfab00bcd67181a2f382bbf58 Mon Sep 17 00:00:00 2001 From: Shkarupa Alex Date: Wed, 16 Apr 2025 11:06:30 +0300 Subject: [PATCH] Fix formatting --- libs/core/langchain_core/indexing/api.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/core/langchain_core/indexing/api.py b/libs/core/langchain_core/indexing/api.py index 60d4ed134c0..616a62bf6fa 100644 --- a/libs/core/langchain_core/indexing/api.py +++ b/libs/core/langchain_core/indexing/api.py @@ -647,9 +647,12 @@ async def aindex( ) raise ValueError(msg) - if type(destination).adelete == VectorStore.adelete and type(destination).delete == VectorStore.delete: - # Checking if the vectorstore has overridden the default adelete or delete methods - # implementation which just raises a NotImplementedError + if ( + type(destination).adelete == VectorStore.adelete + and type(destination).delete == VectorStore.delete + ): + # Checking if the vectorstore has overridden the default adelete or delete + # methods implementation which just raises a NotImplementedError msg = "Vectorstore has not implemented the adelete or delete method" raise ValueError(msg) elif isinstance(destination, DocumentIndex):