🔧 refactor(custom_component.py): make 'code' attribute optional in CustomComponent class to allow instances without explicit code value

This commit is contained in:
gustavoschaedler 2023-07-14 05:08:12 +01:00
commit 75452fb758

View file

@ -8,7 +8,7 @@ from langflow.utils import validate
class CustomComponent(Component):
code: str
code: Optional[str]
field_config: dict = {}
code_class_base_inheritance = "CustomComponent"
function_entrypoint_name = "build"