§ x<ˆj1ãój—ddlmZddlmZmZeedkd¦«Gd„de¦«¦«ZdS)é)Ú version_info)ÚTestCaseÚskipIf)éé zPython >= 3.10 onlycó8—eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z dS) Ú TestMatchcó„—| d¦«| d¦«| d¦«dS)NzŸ def f(): x = 1 match x: case 1 as y: print(f'matched as {y}') z§ def f(): x = [1, 2, 3] match x: case [1, y, 3]: print(f'matched {y}') z© def f(): x = {'foo': 1} match x: case {'foo': y}: print(f'matched {y}') ©Úflakes©Úselfs új/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/pyflakes/test/test_match.pyÚtest_match_bindingszTestMatch.test_match_bindingssa€Ø � Š ð ñ ô ð ð � Š ð ñ ô ð ð � Š ð ñ ô ð ð ð ócóZ—| d¦«| d¦«dS)Nz‡ from a import B match 1: case B(x=1) as y: print(f'matched {y}') z’ from a import B match 1: case B(a, x=z) as y: print(f'matched {y} {a} {z}') r r s rÚ test_match_pattern_matched_classz*TestMatch.test_match_pattern_matched_classsD€Ø � Š ð ñ ô ð ð � Š ð ñ ô ð ð ð rcó0—| d¦«dS)Nz~ def f(): match 1: case _: print('catchall!') r r s rÚtest_match_placeholderz TestMatch.test_match_placeholder/ó'€Ø � Š ð ñ ô ð ð ð rcó0—| d¦«dS)Nz[ match 1: case True: print('true') r r s rÚtest_match_singletonzTestMatch.test_match_singleton7ó'€Ø � Š ð ñ ô ð ð ð rcó0—| d¦«dS)Nzb match 1: case 1 | 2: print('one or two') r r s rÚtest_match_or_patternzTestMatch.test_match_or_pattern>rrcó0—| d¦«dS)Nz‚ x = [1, 2, 3] match x: case [1, *y]: print(f'captured: {y}') r r s rÚtest_match_starzTestMatch.test_match_starErrcó0—| d¦«dS)Nz¢ x = {'foo': 'bar', 'baz': 'womp'} match x: case {'foo': k1, **rest}: print(f'{k1=} {rest=}') r r s rÚtest_match_double_starz TestMatch.test_match_double_starMrrN) Ú__name__Ú __module__Ú __qualname__rrrrrrr©rrr r s}€€€€€ð ð ð ð. ð ð ð  ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð rr N)ÚsysrÚpyflakes.test.harnessrrr r#rrúr&sŒðØÐÐÐÐÐà2Ð2Ð2Ð2Ð2Ð2Ð2Ð2ð€ˆ �wÒÐ 5Ñ6Ô6ðL ðL ðL ðL ðL �ñL ôL ñ7Ô6ðL ðL ðL r