
    Lcg                     b    d Z ddlZddlmZ dgZ G d d      Z G d deej                        Zy)	z=Iterables of DOT source code lines (including final newline).    N   )copyingBasec                   6    e Zd ZdZdej
                  e   fdZy)LineIterablezQIterable of DOT Source code lines
        (mimics ``file`` objects in text mode).returnc                     t        d      )zmYield the generated DOT source line by line.

        Yields: Line ending with a newline (``'\n'``).
        (to be implemented by concrete subclassesNotImplementedErrorselfs    H/var/www/html/bid-api/venv/lib/python3.12/site-packages/graphviz/base.py__iter__zLineIterable.__iter__   s    
 ""LMM    N)__name__
__module____qualname____doc__typingIteratorstrr    r   r   r   r   
   s    3N&//#. Nr   r   c                   2    e Zd ZdZedefd       ZdefdZy)r   zGLineIterator with ``.source`` attribute, that it returns for ``str()``.r   c                     t        d      )Nr
   r   r   s    r   sourcezBase.source   s    !"LMMr   c                     | j                   S )zThe DOT source code as string.)r   r   s    r   __str__zBase.__str__   s    {{r   N)r   r   r   r   propertyr   r   r   r   r   r   r   r      s-    QN N N r   )r   r    r   __all__r   CopyBaser   r   r   r   <module>r#      s5    C  (	N 	N	<)) 	r   