o
    QDi                     @  sN   d dl mZ d dlmZ d dlZddlmZ ejdddG d	d
 d
eZdS )    )annotations)ListN   )StepTF)kw_onlyreprc                   @  s<   e Zd ZU dZdZded< 	 dd Zdgdddiid	Zd
S )field_removezlRemove field.

    This step can be added using the `steps` parameter
    for the `transform` function.
    zfield-removez	List[str]namesc                 C  sZ   g }|  }tt|jjD ]\}}|j| jv r$|j|j || q|j	| |_
d S )N)to_petllist	enumerateschemafieldsnamer	   remove_fieldappendcutoutdata)selfresourceindexestableindexfield r   ^/var/www/Datamplify/venv/lib/python3.10/site-packages/frictionless/steps/field/field_remove.pytransform_resource   s   
zfield_remove.transform_resourcetypearray)required
propertiesN)__name__
__module____qualname____doc__r   __annotations__r   metadata_profile_patchr   r   r   r   r      s   
 
r   )	
__future__r   typingr   attrspipeliner   definer   r   r   r   r   <module>   s   