o
    DD©i  ã                   @   s   d e de fdd„ZdS )ÚlineÚreturnc                 C   s^   g }d}| D ]#}|dkr |}|d d d }|  d||  ¡ q|d7 }|  |¡ qd |¡S )zû
    Tabs are treated as 1-8 spaces according to
    https://docs.python.org/3/reference/lexical_analysis.html#indentation

    Given a string with tabs, this removes all tab characters and replaces them with the
    appropriate number of spaces.
    é    ú	é   ú é   Ú )ÚappendÚjoin)r   Úresult_listÚtotalÚchÚ
prev_total© r   úE/var/www/Datamplify/venv/lib/python3.10/site-packages/libcst/_tabs.pyÚexpand_tabs   s   
r   N)Ústrr   r   r   r   r   Ú<module>   s   