Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlexRiina opened this issue Oct 28, 2019 · 0 comments
Open

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

AlexRiina opened this issue Oct 28, 2019 · 0 comments

Comments

@AlexRiina
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant