🐛 fix(langflow): add type ignore to node variable in LangChainTypeCreator

🐛 fix(langflow): remove unused imports in base.py files
The variable node in LangChainTypeCreator was causing a type error, so a type ignore was added to fix the issue. Additionally, unused imports were removed from both base.py files.
This commit is contained in:
Gabriel Almeida 2023-05-26 22:34:53 -03:00
commit e10a21f824
2 changed files with 3 additions and 3 deletions

View file

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

View file

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