Skip to content

SyntaxWarning: "is not" with a string literal #12

@tryone144

Description

@tryone144

The current code produces the following syntax warning when run under python 3.11:

/opt/ncid/api.py:138: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  visible_models = [model for model in list(models.keys()) if model is not "Rotor-SVM"]

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