Variable will not bind to function error for list
# ask-the-community
s
I am having an error Failed to bind variable data_paths to function load_data and I cannot seem to grasp how to fix it.
data_paths
is a list[str] type and the error also comes with the following:
Copy code
File flytekit/flytekit/core/promise.py", line 969, in create_and_link_node
    binding_from_python_std(
  File "flytekit/flytekit/core/promise.py", line 657, in binding_from_python_std
    binding_data = binding_data_from_python_std(ctx, expected_literal_type, t_value, t_value_type)
  File "flytekit/flytekit/flytekit/core/promise.py", line 602, in binding_data_from_python_std
    raise AssertionError(f"this should be a list and it is not: {type(t_value)} vs {expected_literal_type}")
AssertionError: this should be a list and it is not: <class 'list'> vs union_type {
  variants {
    collection_type {
      simple: STRING
    }
    structure {
      tag: "Typed List"
    }
  }
  variants {
    simple: NONE
    structure {
      tag: "none"
    }
  }
}
Any help is appreciated, maybe this is a simple fix