§ x<ˆj—ãó>—dZddlmZddlmZGd„de¦«ZdS)z2 Tests for dict duplicate keys Pyflakes behavior. é)Úmessages)ÚTestCasecó¤—eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZdS)ÚTestcó\—| dtjtj¦«dS)Nz{'yes': 1, 'yes': 2}©ÚflakesÚmÚMultiValueRepeatedKeyLiteral©Úselfs úi/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/pyflakes/test/test_dict.pyÚtest_duplicate_keyszTest.test_duplicate_keys ó1€Ø � Š Ø "Ý Ô *Ý Ô *ñ ô ð ð ð ócó0—| d¦«dS)Nz{b'a': 1, u'a': 2}©r r s rÚ(test_duplicate_keys_bytes_vs_unicode_py3z-Test.test_duplicate_keys_bytes_vs_unicode_py3s€Ø � Š Ð(Ñ)Ô)Ð)Ð)Ð)rcó\—| dtjtj¦«dS)Nz{1: b'a', 1: u'a'}rr s rÚ*test_duplicate_values_bytes_vs_unicode_py3z/Test.test_duplicate_values_bytes_vs_unicode_py3ó1€Ø � Š Ø Ý Ô *Ý Ô *ñ ô ð ð ð rcóˆ—| dtjtjtjtj¦«dS)Nz&{'yes': 1, 'yes': 2, 'no': 2, 'no': 3}rr s rÚtest_multiple_duplicate_keysz!Test.test_multiple_duplicate_keyss=€Ø � Š Ø 4Ý Ô *Ý Ô *Ý Ô *Ý Ô *ñ  ô ð ð ð rcó\—| dtjtj¦«dS)Nz` def f(thing): pass f({'yes': 1, 'yes': 2}) rr s rÚtest_duplicate_keys_in_functionz$Test.test_duplicate_keys_in_function%ó5€Ø � Š ð õ Ô *Ý Ô *ñ ô ð ð ð rcó\—| dtjtj¦«dS)Nzlambda x: {(0,1): 1, (0,1): 2}rr s rÚtest_duplicate_keys_in_lambdaz"Test.test_duplicate_keys_in_lambda0s1€Ø � Š Ø ,Ý Ô *Ý Ô *ñ ô ð ð ð rcó\—| dtjtj¦«dS)Nz{(0,1): 1, (0,1): 2}rr s rÚtest_duplicate_keys_tupleszTest.test_duplicate_keys_tuples7rrcó\—| dtjtj¦«dS)Nz{(0,1): 1, (0,1.0): 2}rr s rÚ(test_duplicate_keys_tuples_int_and_floatz-Test.test_duplicate_keys_tuples_int_and_float>s1€Ø � Š Ø $Ý Ô *Ý Ô *ñ ô ð ð ð rcó\—| dtjtj¦«dS)Nz {1: 1, 1: 2}rr s rÚtest_duplicate_keys_intszTest.test_duplicate_keys_intsEs1€Ø � Š Ø Ý Ô *Ý Ô *ñ ô ð ð ð rcó\—| dtjtj¦«dS)Nz{True: 1, True: 2}rr s rÚtest_duplicate_keys_boolszTest.test_duplicate_keys_boolsLrrcó\—| dtjtj¦«dS)Nz{False: 1, False: 2}rr s rÚtest_duplicate_keys_bools_falsez$Test.test_duplicate_keys_bools_falseSs1€à � Š Ø "Ý Ô *Ý Ô *ñ ô ð ð ð rcó\—| dtjtj¦«dS)Nz{None: 1, None: 2}rr s rÚtest_duplicate_keys_nonezTest.test_duplicate_keys_none[rrcó\—| dtjtj¦«dS)Nz8 a = 1 {a: 1, a: 2} )r r ÚMultiValueRepeatedKeyVariabler s rÚtest_duplicate_variable_keysz!Test.test_duplicate_variable_keysbs5€Ø � Š ð õ Ô +Ý Ô +ñ  ô ð ð ð rcó\—| dtjtj¦«dS)NzJ a = 1 b = 2 {1: a, 1: b} rr s rÚtest_duplicate_variable_valuesz#Test.test_duplicate_variable_valueslrrcó\—| dtjtj¦«dS)NzJ a = 1 b = 1 {1: a, 1: b} rr s rÚ)test_duplicate_variable_values_same_valuez.Test.test_duplicate_variable_values_same_valuews7€ð � Š ð õ Ô *Ý Ô *ñ ô ð ð ð rcó\—| dtjtj¦«dS)zß These do look like different values, but when it comes to their use as keys, they compare as equal and so are actually duplicates. The literal dict {1: 1, 1.0: 1} actually becomes {1.0: 1}. z( {1: 1, 1.0: 2} Nrr s rÚ test_duplicate_key_float_and_intz%Test.test_duplicate_key_float_and_int„s7€ð � Š ð õ Ô *Ý Ô *ñ  ô ð ð ð rcó0—| d¦«dS)Nz& {'yes': 1, 'yes': 1} rr s rÚ&test_no_duplicate_key_error_same_valuez+Test.test_no_duplicate_key_error_same_value’ó'€Ø � Š ð ñ ô ð ð ð rcó0—| d¦«dS)Nz% {'yes': 1, 'no': 2} rr s rÚtest_no_duplicate_key_errorsz!Test.test_no_duplicate_key_errors—r6rcó0—| d¦«dS)Nz{(0,1): 1, (0,2): 1}rr s rÚ0test_no_duplicate_keys_tuples_same_first_elementz5Test.test_no_duplicate_keys_tuples_same_first_elementœs€Ø � Š Ð*Ñ+Ô+Ð+Ð+Ð+rcó0—| d¦«dS)Nz^ def test(thing): pass test({True: 1, None: 2, False: 1}) rr s rÚ&test_no_duplicate_key_errors_func_callz+Test.test_no_duplicate_key_errors_func_callŸó'€Ø � Š ð ñ ô ð ð ð rcó0—| d¦«dS)Nz{True: 1, None: 2, False: 1}rr s rÚ)test_no_duplicate_key_errors_bool_or_nonez.Test.test_no_duplicate_key_errors_bool_or_none¦s€Ø � Š Ð2Ñ3Ô3Ð3Ð3Ð3rcó0—| d¦«dS)Nz {1: 1, 2: 1} rr s rÚ!test_no_duplicate_key_errors_intsz&Test.test_no_duplicate_key_errors_ints©r6rcó0—| d¦«dS)NzN test = 'yes' rest = 'yes' {test: 1, rest: 2} rr s rÚ!test_no_duplicate_key_errors_varsz&Test.test_no_duplicate_key_errors_vars®r=rcó0—| d¦«dS)Nz& {(0,1): 1, (0,2): 1} rr s rÚ#test_no_duplicate_key_errors_tuplesz(Test.test_no_duplicate_key_errors_tuplesµr6rcó0—| d¦«dS)Nzl class Test(): pass f = Test() f.a = 1 {f.a: 1, f.a: 1} rr s rÚ0test_no_duplicate_key_errors_instance_attributesz5Test.test_no_duplicate_key_errors_instance_attributesºs'€Ø � Š ð ñ ô ð ð ð rN)Ú__name__Ú __module__Ú __qualname__rrrrrrr r"r$r&r(r*r-r/r1r3r5r8r:r<r?rArCrErG©rrrr s‹€€€€€ð ð ð ð*ð*ð*ð ð ð ð ð ð ð  ð  ð  ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð  ð  ð  ð  ð  ð  ð  ð  ð  ð ð ð ð  ð ð ð ,ð,ð,ð ð ð ð4ð4ð4ð ð ð ð  ð ð ð ð ð ð  ð ð ð ð rrN)Ú__doc__Úpyflakesrr Úpyflakes.test.harnessrrrKrrúrOssðððð#Ð"Ð"Ð"Ð"Ð"Ø*Ð*Ð*Ð*Ð*Ð*ðx ðx ðx ðx ðx ˆ8ñx ôx ðx ðx ðx r