primitive dict Variable do strange things with default value
ibaraki-douji opened this issue · comments
Ibaraki Douji commented
When using a Variable of type dict, in the /play webui depending in the default value it does different things.
Using no default:
first_input = Variable(
dict,
title="first_input",
description="An input",
)
Using a simple default value:
first_input = Variable(
dict,
default={"my": "dict"}
title="Input number",
description="A basic input number to do things with",
)
Using a complex default value:
input_var= Variable(
dict,
default={"my": "dict", "is": "big", "and": {"has": "nested", "values": "too"}, "also": {"another": "dict"}}
title="Input number",
description="A basic input number to do things with",
)
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.