I think that there is a slight mistake here (repeated in many other places): depends is a list of objects, possibly functions, and strings.