Ë
    &�£j×  ã                   ó¢   — d Z ddlZddlZddlmZ g Zdedededdfd	„Zdefd
„Z eddd«        eddd«        ed e	e«      d«        e«       Z
y)z=A module for creating docstrings for sphinx ``data`` domains.é    Né   )ÚNDArrayÚnameÚvalueÚdocÚreturnc                 ó4   — t         j                  | ||f«       y)zþAppend ``_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_listÚappend)r   r   r   s      ú>C:\FundamentalWorkbench\vendor\numpy\_typing\_add_docstring.pyÚ
add_newdocr      s   € ô ×Ñ˜T 5¨#Ð.Õ/ó    c                  ó–  — g } t         D �]-  \  }}}t        j                  |«      j                  dd«      }|j	                  d«      }g }d}|D ]º  }t        j                  d|«      }	|	r‹|r‰t        j                  |j                  «       «      }
|
dk(  r(d}|j                  |	j                  d«      › d|
› �«       n'd}|j                  |	j                  d«      › d	|
› �«       |j                  d«       Œ¦|j                  |› |› �«       Œ¼ dj                  |«      }d
|› d|› d|› �}| j                  |«       �Œ0 dj                  | «      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
   ÚtextwrapÚdedentÚreplaceÚsplitÚreÚmatchÚpopr   ÚgroupÚjoin)Útype_list_retr   r   r   ÚsÚlinesÚ	new_linesÚindentÚlineÚmÚprevÚs_blocks               r   Ú_parse_docstringsr%      sF  € ð
 €Mß,Ð,Ñˆˆe�SÜ�O‰O˜CÓ ×(Ñ(¨¨xÓ8ˆð —‘˜“ˆØˆ	ØˆÛˆDÜ—‘Ð+¨TÓ2ˆAÙ‘YÜ—‘ y§}¡}£Ó7�Ø˜:Ò%Ø�FØ×$Ñ$¨¯©°«
 |°<À¸vÐ%FÕGà$�FØ×$Ñ$¨¯©°«
 |Ð3CÀDÀ6Ð%JÔKØ× Ñ  Õ$à× Ñ  F 8¨D¨6Ð!2Õ3ð ð �I‰I�iÓ ˆØ    n°U°G¸6À!ÀÐGˆØ×Ñ˜WÖ%ð/ -ð0 �9‰9�]Ó#Ð#r   Ú	ArrayLikeztyping.Union[...]ag  
    A `~typing.Union` representing objects that can be coerced
    into an `~numpy.ndarray`.

    Among others this includes the likes of:

    * Scalars.
    * (Nested) sequences.
    * Objects implementing the `~class.__array__` protocol.

    .. versionadded:: 1.20

    See Also
    --------
    :term:`array_like`:
        Any scalar or sequence that can be interpreted as an ndarray.

    Examples
    --------
    .. code-block:: python

        >>> import numpy as np
        >>> import numpy.typing as npt

        >>> def as_array(a: npt.ArrayLike) -> np.ndarray:
        ...     return np.array(a)

    Ú	DTypeLikeaÒ  
    A `~typing.Union` representing objects that can be coerced
    into a `~numpy.dtype`.

    Among others this includes the likes of:

    * :class:`type` objects.
    * Character codes or the names of :class:`type` objects.
    * Objects with the ``.dtype`` attribute.

    .. versionadded:: 1.20

    See Also
    --------
    :ref:`Specifying and constructing data types <arrays.dtypes.constructing>`
        A comprehensive overview of all objects that can be coerced
        into data types.

    Examples
    --------
    .. code-block:: python

        >>> import numpy as np
        >>> import numpy.typing as npt

        >>> def as_dtype(d: npt.DTypeLike) -> np.dtype:
        ...     return np.dtype(d)

    r   aØ  
    A `np.ndarray[tuple[Any, ...], np.dtype[ScalarT]] <numpy.ndarray>`
    type alias :term:`generic <generic type>` w.r.t. its
    `dtype.type <numpy.dtype.type>`.

    Can be used during runtime for typing arrays with a given dtype
    and unspecified shape.

    .. versionadded:: 1.21

    Examples
    --------
    .. code-block:: python

        >>> import numpy as np
        >>> import numpy.typing as npt

        >>> print(npt.NDArray)
        NDArray

        >>> print(npt.NDArray[np.float64])
        NDArray[numpy.float64]

        >>> NDArrayInt = npt.NDArray[np.int_]
        >>> a: NDArrayInt = np.arange(10)

        >>> def func(a: npt.ArrayLike) -> npt.NDArray[Any]:
        ...     return np.array(a)

    )Ú__doc__r   r   Ú_array_liker   r
   Ústrr   r%   ÚreprÚ_docstrings© r   r   Ú<module>r.      s�   ðÙ Cã 	Û å  àÐ ð0�Sð 0 ð 0¨3ð 0°4ó 0ð $˜3ó $ñB ˆ;Ð+ðô	ñ< ˆ;Ð+ðô	ñ> ˆ9‘d˜7“mðô	ñ@  Ó!�r   