Skip to content

Syntax error on line 107 views.py #48

@robvdl

Description

@robvdl

We had a project on Python 3.9 and the minute I started using PDM I got this warning, for some reason PDM has revealed the warning:

select2/views.py:107: SyntaxWarning: "is" with a literal. Did you mean "=="?

You shouldn't be using is to check for equality, is is for checking identity only for things like if something is None

Did you want me to send a quick patch?

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