a
    <bF                     @   s   d dl mZ dddZdS )    )PythonCodePrinterpython3c                 C   s^   t d|i}|| }|jd r8ddd |jD }nddd |j D }|d | S )	zRenders Python code as a module (with the required imports).

    Parameters
    ==========

    standard :
        See the parameter ``standard`` in
        :meth:`sympy.printing.pycode.pycode`
    standardZfully_qualified_modules
c                 s   s   | ]}d | V  qdS )z	import %sN ).0kr   r   e/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/sympy/codegen/pyutils.py	<genexpr>       z#render_as_module.<locals>.<genexpr>c                 S   s"   g | ]\}}d |d |f qS )zfrom %s import %sz, )join)r   r   vr   r   r	   
<listcomp>   s   z$render_as_module.<locals>.<listcomp>z

)r   ZdoprintZ	_settingsr   Zmodule_importsitems)contentr   printerZpystrZmodule_imports_strr   r   r	   render_as_module   s    


r   N)r   )Zsympy.printing.pycoder   r   r   r   r   r	   <module>   s   