🐛 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:
parent
bd9d90786a
commit
e10a21f824
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue