Skip to content

Detect duplicate keys in dictionary literals #241

@pyflakes-bot

Description

@pyflakes-bot

Original report by icordasc (@sigmavirus24?) on Launchpad:


It would be great if PyFlakes could catch users specifying duplicate keys in dictionary literals, e.g.,

d = {
    'a': 1,
    'b': 2,
    'a': 3,
}

That second 'a' would be useful to be warned about.

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