Files
codeql/python/ql/src/Expressions/DuplicateKeyInDictionaryLiteral.py

2 lines
89 B
Python

dictionary = {1:"a", 2:"b", 2:"c"} # BAD: The `2` key is duplicated.
print(dictionary[2])