https://prefect.io logo
j

jspeis

02/03/2022, 1:43 AM
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

Anna Geller

02/03/2022, 10:59 AM
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
6 Views