o
    DDi                     @   sh   d dl mZmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 eddde
d	ee d
efddZdS )    )AnySequence)Module)
NEWLINE_RE)with_production)ParserConfig
file_inputz(NEWLINE | stmt)* ENDMARKERconfigchildrenreturnc              	   C   s   |^ }}t |dkr(|}d}t | jdkr't| jd r'| jd dkr'd}n|d }|j}|jdd|d< t|||| j| j| j	| j
dS )Nr           )leading_lines)headerbodyfooterencodingdefault_indentdefault_newlinehas_trailing_newline)lenlinesr   	fullmatchr   with_changesr   r   r   r   r   )r	   r
   r   r   r   
first_stmtr   r   Z/var/www/Datamplify/venv/lib/python3.10/site-packages/libcst/_parser/conversions/module.pyconvert_file_input   s,   
r   N)typingr   r   libcst._nodes.moduler   libcst._nodes.whitespacer   #libcst._parser.production_decoratorr   libcst._parser.types.configr   r   r   r   r   r   <module>   s    