p^3Y P d Z ddlmZmZ ddlmZmZ G d dej ZdS )z:
Optional fixer to transform set() calls to set literals.
)
fixer_basepytree)tokensymsc e Zd ZdZdZdZd ZdS )
FixSetLiteralTaj power< 'set' trailer< '('
(atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
|
single=any) ']' >
|
atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
)
')' > >
c | d }|rJt j t j | g }| | |}n|d }t j t j d g}|
d |j D | t j t j
d |j j |d _ t j t j | }|j |_ t# |j dk r8|j d }| |j |j d _ |S ) Nsingleitems{c 3 > K | ]}| V d S )N)clone).0ns J/opt/alt/python-internal/lib64/python3.11/lib2to3/fixes/fix_set_literal.py