o
    oo™iÅ  ã                   @   sD   d Z ddlZddlmZ dgZG dd„ dƒZG dd„ deejƒZdS )	z=Iterables of DOT source code lines (including final newline).é    Né   )ÚcopyingÚBasec                   @   s$   e Zd ZdZdeje fdd„ZdS )ÚLineIterablezQIterable of DOT Source code lines
        (mimics ``file`` objects in text mode).Úreturnc                 C   ó   t dƒ‚)zmYield the generated DOT source line by line.

        Yields: Line ending with a newline (``'\n'``).
        ú(to be implemented by concrete subclasses©ÚNotImplementedError©Úself© r   úA/home/ubuntu/.local/lib/python3.10/site-packages/graphviz/base.pyÚ__iter__   s   zLineIterable.__iter__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚtypingÚIteratorÚstrr   r   r   r   r   r   
   s    r   c                   @   s0   e Zd ZdZedefdd„ƒZdefdd„ZdS )r   zGLineIterator with ``.source`` attribute, that it returns for ``str()``.r   c                 C   r   )Nr   r	   r   r   r   r   Úsource   s   zBase.sourcec                 C   s   | j S )zThe DOT source code as string.)r   r   r   r   r   Ú__str__   s   zBase.__str__N)r   r   r   r   Úpropertyr   r   r   r   r   r   r   r      s
    )r   r   Ú r   Ú__all__r   ÚCopyBaser   r   r   r   r   Ú<module>   s    