Skip to content

celery bind=True causes no-value-for-parameter #11

Open
@AlexRiina

Description

@AlexRiina

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions