
    +hD                         S r SSKrS rg)z3
Doc utilities: Utilities related to documentation
    Nc                    ^  U 4S jnU$ )Nc                 p  > U R                   nUR                  S5      nSnU[        U5      :  aJ  [        R                  " SX#   5      c0  US-  nU[        U5      :  a  [        R                  " SX#   5      c  M0  U[        U5      :  a  TX#'   SR                  U5      nO[        SU  SU 35      eXl         U $ )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/home/james-whalen/.local/lib/python3.13/site-packages/diffusers/utils/doc_utils.pydocstring_decorator6replace_example_docstring.<locals>.docstring_decorator   s    ::t$#e*n+@%(!K!SFA #e*n+@%(!K!Ss5z>(EHyy'Ht $**25  
	     )r   r   s   ` r   replace_example_docstringr      s    " r   )r   r
   r   r   r   r   <module>r      s    
r   