bg1jddlmZddlmZmZeedkdGddeZdS)) version_info)TestCaseskipIf) zPython >= 3.10 onlyc8eZdZdZdZdZdZdZdZdZ dS) TestMatchc|d|d|ddS)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 i/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pyflakes/test/test_match.pytest_match_bindingszTestMatch.test_match_bindingssa                 cZ|d|ddS)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            rc0|ddS)Nz~ def f(): match 1: case _: print('catchall!') r r s rtest_match_placeholderz TestMatch.test_match_placeholder/'       rc0|ddS)Nz[ match 1: case True: print('true') r r s rtest_match_singletonzTestMatch.test_match_singleton7'       rc0|ddS)Nzb match 1: case 1 | 2: print('one or two') r r s rtest_match_or_patternzTestMatch.test_match_or_pattern>rrc0|ddS)Nz x = [1, 2, 3] match x: case [1, *y]: print(f'captured: {y}') r r s rtest_match_starzTestMatch.test_match_starErrc0|ddS)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_starMrrN) __name__ __module__ __qualname__rrrrrrrrrr r s}   .                    rr N)sysrpyflakes.test.harnessrrr r#rrr&s22222222 w 566L L L L L L L 76L L L r