§
    îyIfY	  ã                   ój   — d dl mZ d dlmZmZ  eedk     d¦  «         G d„ de¦  «        ¦   «         ZdS )é    )Úversion_info)ÚTestCaseÚskipIf)é   é
   zPython >= 3.10 onlyc                   ó>   — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	S )
Ú	TestMatchc                 ó„   — |                       d¦  «         |                       d¦  «         |                       d¦  «         d S )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    úL/var/www/piapp/venv/lib/python3.11/site-packages/pyflakes/test/test_match.pyÚtest_match_bindingszTestMatch.test_match_bindings   sa   € Ø�Šð ñ 	ô 	ð 	ð 	�Šð ñ 	ô 	ð 	ð 	�Šð ñ 	ô 	ð 	ð 	ð 	ó    c                 óZ   — |                       d¦  «         |                       d¦  «         d S )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_class   sD   € Ø�Šð ñ 	ô 	ð 	ð 	�Šð ñ 	ô 	ð 	ð 	ð 	r   c                 ó0   — |                       d¦  «         d S )Nz~
            def f():
                match 1:
                    case _:
                        print('catchall!')
        r   r   s    r   Útest_match_placeholderz TestMatch.test_match_placeholder/   ó'   € Ø�Šð ñ 	ô 	ð 	ð 	ð 	r   c                 ó0   — |                       d¦  «         d S )Nz[
            match 1:
                case True:
                    print('true')
        r   r   s    r   Útest_match_singletonzTestMatch.test_match_singleton7   ó'   € Ø�Šð ñ 	ô 	ð 	ð 	ð 	r   c                 ó0   — |                       d¦  «         d S )Nzb
            match 1:
                case 1 | 2:
                    print('one or two')
        r   r   s    r   Útest_match_or_patternzTestMatch.test_match_or_pattern>   r   r   c                 ó0   — |                       d¦  «         d S )Nz‚
            x = [1, 2, 3]
            match x:
                case [1, *y]:
                    print(f'captured: {y}')
        r   r   s    r   Útest_match_starzTestMatch.test_match_starE   r   r   c                 ó0   — |                       d¦  «         d S )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_starM   r   r   c                 ó0   — |                       d¦  «         d S )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_branchesU   s'   € Ø�Šð ñ 	ô 	ð 	ð 	ð 	r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r!   © r   r   r	   r	      sŒ   € € € € € ðð ð ð.ð ð ð ð ð ðð ð ðð ð ðð ð ðð ð ð	ð 	ð 	ð 	ð 	r   r	   N)Úsysr   Úpyflakes.test.harnessr   r   r	   r%   r   r   ú<module>r(      sŒ   ðØ Ð Ð Ð Ð Ð à 2Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2ð €ˆ�wÒÐ 5Ñ6Ô6ðWð Wð Wð Wð W�ñ Wô Wñ 7Ô6ðWð Wð Wr   