Skip to content

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

@simonpanay

Description

@simonpanay

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

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