Skip to content

E713: false negatives #334

Description

@rkday

I was looking into #330, and I noticed that the following don't cause E713 when they should:

if not (X) in Y:
    pass
if not X() in Y:
    pass

Looks like the regular expression is picking up the ( between not and in and wrongly deciding that this is something of the form:

if not (X in Y or X is Z):
    pass

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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