a
    ø£Beì  ã                   @  s<   d Z ddlmZ ddlmZ ddlmZ G dd„ deƒZdS )z
Contains writer base class.
é    )Úannotations)ÚList)ÚNbConvertBasec                      sH   e Zd ZU dZeg dd�jdd�Zded< d‡ fd	d
„	Zdd„ Z	‡  Z
S )Ú
WriterBasezWConsumes output from nbconvert export...() methods and writes to a
    useful location.zm
        List of the files that the notebook references.  Files will be
        included with written output.)ÚhelpT)Úconfigz	List[str]ÚfilesNc                   s   t ƒ jf d|i|¤Ž dS )z
        Constructor
        r   N)ÚsuperÚ__init__)Úselfr   Úkw©Ú	__class__© úY/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/nbconvert/writers/base.pyr
      s    zWriterBase.__init__c                 K  s
   t ƒ ‚dS )a§  
        Consume and write Jinja output.

        Parameters
        ----------
        output : string
            Conversion results.  This string contains the file contents of the
            converted file.
        resources : dict
            Resources created and filled by the nbconvert conversion process.
            Includes output from preprocessors, such as the extract figure
            preprocessor.
        N)ÚNotImplementedError)r   ÚoutputÚ	resourcesr   r   r   r   Úwrite   s    zWriterBase.write)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Útagr   Ú__annotations__r
   r   Ú__classcell__r   r   r   r   r      s   
þûr   N)r   Ú
__future__r   Z	traitletsr   Znbconvert.utils.baser   r   r   r   r   r   Ú<module>   s   