From e10a21f82466ce267bfd9b9e009284782c692da9 Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Fri, 26 May 2023 22:34:53 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(langflow):=20add=20type=20ig?= =?UTF-8?q?nore=20to=20node=20variable=20in=20LangChainTypeCreator=20?= =?UTF-8?q?=F0=9F=90=9B=20fix(langflow):=20remove=20unused=20imports=20in?= =?UTF-8?q?=20base.py=20files=20The=20variable=20node=20in=20LangChainType?= =?UTF-8?q?Creator=20was=20causing=20a=20type=20error,=20so=20a=20type=20i?= =?UTF-8?q?gnore=20was=20added=20to=20fix=20the=20issue.=20Additionally,?= =?UTF-8?q?=20unused=20imports=20were=20removed=20from=20both=20base.py=20?= =?UTF-8?q?files.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/interface/base.py | 2 +- src/backend/langflow/template/base.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/langflow/interface/base.py b/src/backend/langflow/interface/base.py index 663700ffd..d51d81788 100644 --- a/src/backend/langflow/interface/base.py +++ b/src/backend/langflow/interface/base.py @@ -42,7 +42,7 @@ class LangChainTypeCreator(BaseModel, ABC): # so we should update the result dict node = self.frontend_node(name) if node is not None: - node = node.to_dict() + node = node.to_dict() # type: ignore result[self.type_name].update(node) return result diff --git a/src/backend/langflow/template/base.py b/src/backend/langflow/template/base.py index 74e180356..76b544974 100644 --- a/src/backend/langflow/template/base.py +++ b/src/backend/langflow/template/base.py @@ -1,6 +1,6 @@ -from abc import ABC import re -from typing import Any, Callable, Dict, List, Optional, Union +from abc import ABC +from typing import Any, Callable, List, Optional, Union from pydantic import BaseModel