U
    nuf                     @  s@   d Z ddlmZ ddlmZmZ ddlmZ G dd deZdS )z
Contains writer base class.
    )annotations)ListUnicode)NbConvertBasec                      s@   e Zd ZdZee ddjddZ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)configNc                   s   t  jf d|i| dS )z
        Constructor
        r   N)super__init__)selfr   kw	__class__ :/tmp/pip-unpacked-wheel-nxpdnluh/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   r   tagfilesr
   r   __classcell__r   r   r   r   r      s   r   N)	r   
__future__r   Z	traitletsr   r   Znbconvert.utils.baser   r   r   r   r   r   <module>   s   