blob: 6d359ff0a91d0e1a87879957cb8b0ec7fc8a0e18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
"""Check multiple key definition"""
# pylint: disable=pointless-statement, redundant-u-string-prefix
correct_dict = {
'tea': 'for two',
'two': 'for tea',
}
wrong_dict = { # [duplicate-key]
'tea': 'for two',
'two': 'for tea',
'tea': 'time',
}
{1: b'a', 1: u'a'} # [duplicate-key]
{1: 1, 1.0: 2} # [duplicate-key]
|