ó
    ÞÅŸgY	  ã                   óT   • S SK Jr  S SKJrJr  \" \S:  S5       " S S\5      5       rg)é    )Úversion_info)ÚTestCaseÚskipIf)é   é
   zPython >= 3.10 onlyc                   óD   • \ rS rSrS rS rS rS rS rS r	S r
S	 rS
rg)Ú	TestMatché   c                 ój   • U R                  S5        U R                  S5        U R                  S5        g )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    ÚY/var/www/blue/EV-Temp_rev04/venv/lib/python3.13/site-packages/pyflakes/test/test_match.pyÚtest_match_bindingsÚTestMatch.test_match_bindings   s9   € Ø�‰ð ô 	ð 	�‰ð ô 	ð 	�‰ð õ 	ó    c                 óH   • U R                  S5        U R                  S5        g )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_classÚ*TestMatch.test_match_pattern_matched_class   s&   € Ø�‰ð ô 	ð 	�‰ð õ 	r   c                 ó&   • U R                  S5        g )Nz~
            def f():
                match 1:
                    case _:
                        print('catchall!')
        r   r   s    r   Útest_match_placeholderÚ TestMatch.test_match_placeholder/   ó   € Ø�‰ð õ 	r   c                 ó&   • U R                  S5        g )Nz[
            match 1:
                case True:
                    print('true')
        r   r   s    r   Útest_match_singletonÚTestMatch.test_match_singleton7   ó   € Ø�‰ð õ 	r   c                 ó&   • U R                  S5        g )Nzb
            match 1:
                case 1 | 2:
                    print('one or two')
        r   r   s    r   Útest_match_or_patternÚTestMatch.test_match_or_pattern>   r   r   c                 ó&   • U R                  S5        g )Nz‚
            x = [1, 2, 3]
            match x:
                case [1, *y]:
                    print(f'captured: {y}')
        r   r   s    r   Útest_match_starÚTestMatch.test_match_starE   r   r   c                 ó&   • U R                  S5        g )Nz¢
            x = {'foo': 'bar', 'baz': 'womp'}
            match x:
                case {'foo': k1, **rest}:
                    print(f'{k1=} {rest=}')
        r   r   s    r   Útest_match_double_starÚ TestMatch.test_match_double_starM   r   r   c                 ó&   • U R                  S5        g )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_branchesÚ,TestMatch.test_defined_in_different_branchesU   s   € Ø�‰ð õ 	r   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   r   r   r    r#   r&   r)   Ú__static_attributes__r+   r   r   r	   r	      s*   † òò.ò òòòòõ	r   r	   N)Úsysr   Úpyflakes.test.harnessr   r   r	   r+   r   r   Ú<module>r3      s6   ðÝ ç 2ñ ˆ�wÑÐ 5Ó6ôW�ó Wó 7ñWr   