관리-도구
편집 파일: test_match.cpython-311.pyc
� �܋f1 � �j � d dl mZ d dlmZmZ eedk d� � G d� de� � � � ZdS )� )�version_info)�TestCase�skipIf)� � zPython >= 3.10 onlyc �8 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z dS ) � 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 �i/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyflakes/test/test_match.py�test_match_bindingszTestMatch.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/ �'