
    1;jiD                         d Z ddlZd ZdS )z3
Doc utilities: Utilities related to documentation
    Nc                       fd}|S )Nc                    | j         }|                    d          }d}|t          |          k     rNt          j        d||                   3|dz  }|t          |          k     rt          j        d||                   3|t          |          k     r||<   d                    |          }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       S/root/voice-cloning/.venv/lib/python3.11/site-packages/diffusers/utils/doc_utils.pydocstring_decoratorz6replace_example_docstring.<locals>.docstring_decorator   s    :t$$#e**nn+@%(!K!K!SFA #e**nn+@%(!K!K!Ss5zz>>(E!Hyy''HH5 5 5*25 5   
	     )r   r   s   ` r   replace_example_docstringr      s$        " r   )r   r
   r   r   r   r   <module>r      s3     
			    r   