Open
Description
The bind=True parameter, which passes the task instance into the task execution triggers a pylint error despite executing fine
from celery import Celery
app = Celery(broker='amqp://')
@app.task(acks_late=True)
def xxx(a):
pass
xxx('x')
@app.task(bind=True, acks_late=True)
def yyy(self, a):
pass
yyy('x')
$ pylint --load-plugins pylint_celery -E pylint_test.py
> pylint_test.py:20:0: E1120: No value for argument 'a' in function call (no-value-for-parameter)
Metadata
Assignees
Labels
No labels