Skip to content

unused variables in list comprehension not reported #593

Description

@lilydjwg

Test code:

def t(items):
  return ['{x}' for x in items]

There is a missing f prefix which makes the local x variable unused, but pyflakes doesn't notice this.

$ pyflakes --version
2.2.0 Python 3.8.6 on Linux

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