From 3c89e893e7847733155d455baf8f3dd4b4963e7c Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 22 Jun 2023 22:43:37 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20refactor(vectorstores.py):=20cha?= =?UTF-8?q?nge=20import=20statement=20to=20import=20List=20from=20typing?= =?UTF-8?q?=20The=20import=20statement=20for=20Optional=20was=20changed=20?= =?UTF-8?q?to=20import=20List=20from=20typing=20to=20improve=20readability?= =?UTF-8?q?=20and=20consistency=20with=20the=20use=20of=20List=20in=20the?= =?UTF-8?q?=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/template/frontend_node/vectorstores.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/template/frontend_node/vectorstores.py b/src/backend/langflow/template/frontend_node/vectorstores.py index 0fcb76975..1e0c0eb11 100644 --- a/src/backend/langflow/template/frontend_node/vectorstores.py +++ b/src/backend/langflow/template/frontend_node/vectorstores.py @@ -1,4 +1,4 @@ -from typing import Optional +from typing import List, Optional from langflow.template.field.base import TemplateField from langflow.template.frontend_node.base import FrontendNode @@ -6,7 +6,7 @@ from langflow.template.frontend_node.base import FrontendNode class VectorStoreFrontendNode(FrontendNode): def add_extra_fields(self) -> None: - extra_fields = [] + extra_fields: List[TemplateField] = [] if self.template.type_name == "Weaviate": extra_field = TemplateField( name="weaviate_url",