summaryrefslogtreecommitdiff
path: root/pylint/test/functional/duplicate_dict_literal_key.py
blob: f74e10e92d0c36df71042fbc0401a354373fca00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Check multiple key definition"""
#pylint: disable=C0103

correct_dict = {
    'tea': 'for two',
    'two': 'for tea',
}

wrong_dict = {  # [duplicate-key]
    'tea': 'for two',
    'two': 'for tea',
    'tea': 'time',

}