def flatten_output(task):
    r = flatten(task.output())
    if not r:
        for dep in flatten(task.requires()):
            r += flatten_output(dep)
    return r
Lists all output targets by recursively walking output-less (wrapper) tasks.
dataset/ETHPy150Open spotify/luigi/luigi/task.py/flatten_output