Detect duplicate keys in dictionary literals
Bug #1530909 reported by
Ian Cordasco
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
New
|
Undecided
|
Unassigned |
Bug Description
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.