Remove is_composition attribute from custom component
This commit is contained in:
parent
0aad733e39
commit
300d1aa050
3 changed files with 0 additions and 5 deletions
|
|
@ -86,7 +86,6 @@ class Component:
|
|||
"beta": self.getattr_return_str,
|
||||
"documentation": self.getattr_return_str,
|
||||
"icon": self.validate_icon,
|
||||
"is_composition": self.getattr_return_bool,
|
||||
}
|
||||
|
||||
for attribute, func in attributes_func_mapping.items():
|
||||
|
|
|
|||
|
|
@ -35,9 +35,6 @@ class CustomComponent(Component):
|
|||
"""The field configuration of the component. Defaults to an empty dictionary."""
|
||||
field_order: Optional[List[str]] = None
|
||||
"""The field order of the component. Defaults to an empty list."""
|
||||
is_composition: Optional[bool] = None
|
||||
"""Whether the component is used for composition.
|
||||
This affects the style of the edge connecting the component to the next component. Defaults to None."""
|
||||
code_class_base_inheritance: ClassVar[str] = "CustomComponent"
|
||||
function_entrypoint_name: ClassVar[str] = "build"
|
||||
function: Optional[Callable] = None
|
||||
|
|
|
|||
|
|
@ -270,7 +270,6 @@ def sanitize_template_config(template_config):
|
|||
"documentation",
|
||||
"output_types",
|
||||
"icon",
|
||||
"is_composition",
|
||||
}
|
||||
for key in template_config.copy():
|
||||
if key not in attributes:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue