I'm using pylint and it seems like when I use the ...
# ask-community
j
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?)
Copy code
@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])
a
You’re right, I think disabling is the best option, curious to hear if anyone has other idea here:
Copy code
second = add_one(p, upstream_tasks=[first])  # pylint: disable=unexpected-keyword-arg
✔️ 1