o
    QDi<                     @  sb   d dl mZ d dlmZmZ d dlZddlmZ er ddlm	Z	 ej
ddd	G d
d deZdS )    )annotations)TYPE_CHECKINGOptionalN   )Step)ResourceTF)kw_onlyreprc                   @  sR   e Zd ZU dZdZded< 	 dZded< 	 dd
dZdgddiddiddZdS )cell_formatzoFormat cell

    Formats all values in the given or all string fields using the `template` format string.

    zcell-formatstrtemplateNzOptional[str]
field_nameresourcer   c                 C  s6   |  }| js|| j|_d S || j| j|_d S )N)to_petlr   	formatallr   dataformat)selfr   table r   \/var/www/Datamplify/venv/lib/python3.10/site-packages/frictionless/steps/cell/cell_format.pytransform_resource   s   zcell_format.transform_resourcetypestring)r   	fieldName)required
properties)r   r   )	__name__
__module____qualname____doc__r   __annotations__r   r   metadata_profile_patchr   r   r   r   r
      s   
 


r
   )
__future__r   typingr   r   attrspipeliner   r   r   definer
   r   r   r   r   <module>   s    