jspeis

    jspeis

    7 months ago
    I'm using pylint and it seems like when I use the
    upstream_tasks
    kwarg (e.g. as in example below) I get an
    Unexpected keyword argument 'upstream_tasks' in function call (unexpected-keyword-arg)
    ... is there a way I can get pylint to recognize this is ok? (other than disabling?)
    @task
    def add_one(val):
        return val + 1
    
    with Flow("Add One") as flow:
        p = Parameter("param")
        first = add_one(p)
        second = add_one(p, upstream_tasks=[first])
    Anna Geller

    Anna Geller

    7 months ago
    You’re right, I think disabling is the best option, curious to hear if anyone has other idea here:
    second = add_one(p, upstream_tasks=[first])  # pylint: disable=unexpected-keyword-arg