
    Mh                    J    d Z ddlmZ  G d d          Z G d d          ZdS )zNBase classes and function for readers and writers.

Authors:

* Brian Granger
    )annotationsc                      e Zd ZdZd Zd ZdS )NotebookReaderzThe base notebook reader.c                $    d}t          |          )zRead a notebook from a string.'loads must be implemented in a subclassNotImplementedError)selfskwargsmsgs       R/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/nbformat/v1/rwbase.pyreadszNotebookReader.reads       7!#&&&    c                B     | j         |                                fi |S )z'Read a notebook from a file like object)r   read)r
   fpr   s      r   r   zNotebookReader.read!   s$    tz"''))..v...r   N)__name__
__module____qualname____doc__r   r    r   r   r   r      s8        ##' ' '
/ / / / /r   r   c                      e Zd ZdZd Zd ZdS )NotebookWriterzThe base notebook writer.c                $    d}t          |          )zWrite a notebook to a string.r   r   )r
   nbr   r   s       r   writeszNotebookWriter.writes)   r   r   c                D    |                      | j        |fi |          S )z&Write a notebook to a file like object)writer   )r
   r   r   r   s       r   r    zNotebookWriter.write.   s(    xxB11&11222r   N)r   r   r   r   r   r    r   r   r   r   r   &   s8        ##' ' '
3 3 3 3 3r   r   N)r   
__future__r   r   r   r   r   r   <module>r"      s}    * # " " " " "
/ 
/ 
/ 
/ 
/ 
/ 
/ 
/
3 
3 
3 
3 
3 
3 
3 
3 
3 
3r   