🐛 fix(custom_component.py): change repr_value type from str to Any to allow any type of value to be assigned

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-22 16:37:53 -03:00
commit fb7513f7cb

View file

@ -20,7 +20,7 @@ class CustomComponent(Component, extra=Extra.allow):
function_entrypoint_name = "build"
function: Optional[Callable] = None
return_type_valid_list = list(CUSTOM_COMPONENT_SUPPORTED_TYPES.keys())
repr_value: Optional[str] = ""
repr_value: Optional[Any] = ""
def __init__(self, **data):
super().__init__(**data)