Skip to content

SyntaxWarning: "is" with a literal. Did you mean "=="? #5

@abmfy

Description

@abmfy

On macOS with Python 3.11:

$ docker ps | choose -1
/opt/homebrew/Cellar/choose/0.1.0_4/libexec/bin/choose:138: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(names) is 1:
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions