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

Incorrectly identify queryset as not iterable when using exclude. #177

Closed
simonpanay opened this issue Jul 12, 2018 · 1 comment
Closed

Comments

@simonpanay
Copy link
Contributor

pip_freeze.txt

return [periodique.pk for periodique in Periodique.objects.exclude(periode__isnull=True)]

with this code, pylint detects the following error :
pylint: not-an-iterable / Non-iterable value Periodique.objects.exclude(periode__isnull=True) is used in an iterating context (col 48)

If I replace exclude by filter, no error is detected by pylint

@atodorov
Copy link
Contributor

Can you retry with pylint-django 2.0 that was released today ?

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

2 participants