K iY TddlmZddlmZmZeedkdGddeZy)) version_info)TestCaseskipIf) zPython >= 3.10 onlyc<eZdZdZdZdZdZdZdZdZ dZ y ) TestMatchcj|jd|jd|jdy)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}') flakesselfs ^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pyflakes/test/test_match.pytest_match_bindingszTestMatch.test_match_bindingss9         cH|jd|jdy)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_classs&      rc&|jdy)Nz~ def f(): match 1: case _: print('catchall!') r r s rtest_match_placeholderz TestMatch.test_match_placeholder/   rc&|jdy)Nz[ match 1: case True: print('true') r r s rtest_match_singletonzTestMatch.test_match_singleton7   rc&|jdy)Nzb match 1: case 1 | 2: print('one or two') r r s rtest_match_or_patternzTestMatch.test_match_or_pattern>rrc&|jdy)Nz x = [1, 2, 3] match x: case [1, *y]: print(f'captured: {y}') r r s rtest_match_starzTestMatch.test_match_starErrc&|jdy)Nz x = {'foo': 'bar', 'baz': 'womp'} match x: case {'foo': k1, **rest}: print(f'{k1=} {rest=}') r r s rtest_match_double_starz TestMatch.test_match_double_starMrrc&|jdy)Nz def f(x): match x: case 1: def y(): pass case _: def y(): print(1) return y r r s r"test_defined_in_different_branchesz,TestMatch.test_defined_in_different_branchesUs   rN) __name__ __module__ __qualname__rrrrrrrr!rrr r s* .        rr N)sysrpyflakes.test.harnessrrr r%rrr(s62 w 56W W 7W r