Hello, My OP has an input of type List['Any'] but ...
# ask-community
a
Hello, My OP has an input of type List['Any'] but when I try to assign value to it. It dispalys following error: Value for selector type at path rootopsacm_part2inputsforecast_apportionment[0] must be a dict
image.png
Type check passes if I am passing a blank List. But, when I try to pass a list with string values it shows error that I stated above
o
hi @Akhil! dagster allows you to populate an input value in a few different ways via the config system:
Copy code
{
  /* One of the following: */
  json: {
    path: String
  }
  pickle: {
    path: String
  }
  value: Any
}
so if I wanted to pass in the list ["a", "b", "c"], each one of those values could be passed in either via json path, pickle path, or literal value. in order to choose the "literal value" option, you'd need each element to be passed in as
Copy code
[{"value": "a"}, {"value": "b"}, {"value": "c"}]
if you make the type List[str] instead, then you'd be able to just pass in ["a", "b", "c"] directly, but that may not work for your use case
a
thanks @owen got it working