fix erros reported by mypy
This commit is contained in:
parent
d11e7c6fc5
commit
6ec39c8136
2 changed files with 13 additions and 11 deletions
|
|
@ -1,17 +1,17 @@
|
|||
from .AgentComponent import AgentComponent
|
||||
from .ConditionalRouter import ConditionalRouterComponent
|
||||
from .ConditionalRouter import ConditionalRouterComponent # type: ignore
|
||||
from .ExtractKeyFromData import ExtractKeyFromDataComponent
|
||||
from .FlowTool import FlowToolComponent
|
||||
from .Listen import ListenComponent
|
||||
from .FlowTool import FlowToolComponent # type: ignore
|
||||
from .Listen import ListenComponent # type: ignore
|
||||
from .ListFlows import ListFlowsComponent
|
||||
from .MergeData import MergeDataComponent
|
||||
from .Notify import NotifyComponent
|
||||
from .PythonFunction import PythonFunctionComponent
|
||||
from .RunFlow import RunFlowComponent
|
||||
from .Notify import NotifyComponent # type: ignore
|
||||
from .PythonFunction import PythonFunctionComponent # type: ignore
|
||||
from .RunFlow import RunFlowComponent # type: ignore
|
||||
from .RunnableExecutor import RunnableExecComponent
|
||||
from .SelectivePassThrough import SelectivePassThroughComponent
|
||||
from .SplitText import SplitTextComponent
|
||||
from .SQLExecutor import SQLExecutorComponent
|
||||
from .SplitText import SplitTextComponent # type: ignore
|
||||
from .SQLExecutor import SQLExecutorComponent # type: ignore
|
||||
from .SubFlow import SubFlowComponent
|
||||
|
||||
__all__ = [
|
||||
|
|
|
|||
|
|
@ -1,16 +1,18 @@
|
|||
import uuid
|
||||
from typing import Optional
|
||||
from typing import Optional, Any,
|
||||
|
||||
from langflow.custom import CustomComponent
|
||||
from langflow.schema.dotdict import dotdict
|
||||
|
||||
|
||||
class UUIDGeneratorComponent(CustomComponent):
|
||||
display_name = "ID Generator"
|
||||
description = "Generates a unique ID."
|
||||
|
||||
def update_build_config(
|
||||
def update_build_config( # type: ignore
|
||||
self,
|
||||
build_config: dict,
|
||||
build_config: dotdict,
|
||||
field_value: Any,
|
||||
field_name: Optional[str] = None,
|
||||
):
|
||||
if field_name == "unique_id":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue