Skip to content

Commit 0f5be2d

Browse files
Update python/ql/src/Expressions/DuplicateKeyInDictionaryLiteral.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 909f572 commit 0f5be2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
dictionary = {1:"a", 2:"b", 2:"c"} # BAD: `2` key is duplicated.
1+
dictionary = {1:"a", 2:"b", 2:"c"} # BAD: The `2` key is duplicated.
22
print(dictionary[2])

0 commit comments

Comments
 (0)