diff --git a/libs/langchain/langchain/retrievers/self_query/weaviate.py b/libs/langchain/langchain/retrievers/self_query/weaviate.py index 1db80b9ba00f5..5f27c4d8479ad 100644 --- a/libs/langchain/langchain/retrievers/self_query/weaviate.py +++ b/libs/langchain/langchain/retrievers/self_query/weaviate.py @@ -69,9 +69,7 @@ def visit_comparison(self, comparison: Comparison) -> Dict: } return filter - def visit_structured_query( - self, structured_query: StructuredQuery - ) -> Tuple[str, dict]: + def visit_structured_query(self, structured_query): if structured_query.filter is None: kwargs = {} else: