
    biD                         d Z ddlZd Zy)z3
Doc utilities: Utilities related to documentation
    Nc                       fd}|S )Nc                 h   | j                   }|j                  d      }d}|t        |      k  rFt        j                  d||         -|dz  }|t        |      k  rt        j                  d||         -|t        |      k  r||<   dj                  |      }nt        d|  d|       || _         | S )N
r   z^\s*Examples?:\s*$   zThe function zY should have an empty 'Examples:' in its docstring as placeholder, current docstring is:
)__doc__splitlenresearchjoin
ValueError)fnfunc_doclinesiexample_docstrings       T/home/cdr/jupyterlab/.venv/lib/python3.12/site-packages/diffusers/utils/doc_utils.pydocstring_decoratorz6replace_example_docstring.<locals>.docstring_decorator   s    ::t$#e*n+@%(!K!SFA #e*n+@%(!K!Ss5z>(E!Hyy'Ht $**25  
	     )r   r   s   ` r   replace_example_docstringr      s    " r   )r   r
   r   r   r   r   <module>r      s    
r   