🔨 refactor(vectorstores.py): change import statement to import List from typing

The import statement for Optional was changed to import List from typing to improve readability and consistency with the use of List in the code.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-22 22:43:37 -03:00
commit 3c89e893e7

View file

@ -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",