1jR d Z ddlZddlZddlmZ g Zdedededdfd Zdefd Z eddd eddd ed e e d e Z dS )z=A module for creating docstrings for sphinx ``data`` domains. N )NDArraynamevaluedocreturnc @ t | ||f dS )zAppend ``_docstrings_list`` with a docstring for `name`. Parameters ---------- name : str The name of the object. value : str A string-representation of the object. doc : str The docstring of the object. N)_docstrings_listappend)r r r s p/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib64/python3.11/site-packages/numpy/_typing/_add_docstring.py add_newdocr s% T5#.///// c g } t D ]U\ }}}t j | dd }| d }g }d}|D ]}t j d| } | r|rt j | } | dk r0d}| | d d| n/d}| | d d | | d | | | d | }d | d| d| }| | Wd | S )zaConvert all docstrings in ``_docstrings_list`` into a single sphinx-legible text block. z z^(\s+)[-=]+\s*$Examplesr z.. rubric:: z z.. admonition:: z .. data:: z :value: )r textwrapdedentreplacesplitrematchpopr groupjoin) type_list_retr r r slines new_linesindentlinemprevs_blocks r _parse_docstringsr% s M, &