+
    ÖÍiÉ	  ã                   óŠ   € R t ^ RIHtHtHtHtHt ]'       d   ^ RIHt R.t	]! RRR7      t
] ! R R]]
,          4      4       tR# )	z3A module containing the `_NestedSequence` protocol.)ÚTYPE_CHECKINGÚAnyÚProtocolÚTypeVarÚruntime_checkable)ÚIteratorÚ_NestedSequenceÚ_T_coT)Ú	covariantc                   ó¢   a € ] tR t^t o RtV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR	 ltV 3R
 lR lt	V 3R lR lt
V 3R lR ltRtV tR# )r   aP  A protocol for representing nested sequences.

Warning
-------
`_NestedSequence` currently does not work in combination with typevars,
*e.g.* ``def func(a: _NestedSequnce[T]) -> T: ...``.

See Also
--------
collections.abc.Sequence
    ABCs for read-only and mutable :term:`sequences`.

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

    >>> from typing import TYPE_CHECKING
    >>> import numpy as np
    >>> from numpy._typing import _NestedSequence

    >>> def get_dtype(seq: _NestedSequence[float]) -> np.dtype[np.float64]:
    ...     return np.asarray(seq).dtype

    >>> a = get_dtype([1.0])
    >>> b = get_dtype([[1.0]])
    >>> c = get_dtype([[[1.0]]])
    >>> d = get_dtype([[[[1.0]]]])

    >>> if TYPE_CHECKING:
    ...     reveal_locals()
    ...     # note: Revealed local types are:
    ...     # note:     a: numpy.dtype[numpy.floating[numpy._typing._64Bit]]
    ...     # note:     b: numpy.dtype[numpy.floating[numpy._typing._64Bit]]
    ...     # note:     c: numpy.dtype[numpy.floating[numpy._typing._64Bit]]
    ...     # note:     d: numpy.dtype[numpy.floating[numpy._typing._64Bit]]

c                ó    <€ V ^8„  d   QhRS[ /# )é   Úreturn©Úint)ÚformatÚ__classdict__s   "€Ú@/usr/lib/python3/dist-packages/numpy/_typing/_nested_sequence.pyÚ__annotate__Ú_NestedSequence.__annotate__5   s   ø€ ÷ "ñ "™Cñ "ó    c               ó   € \         h)zImplement ``len(self)``.©ÚNotImplementedError©Úselfs   "r   Ú__len__Ú_NestedSequence.__len__5   ó   € ä!Ð!r   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   Úindexr   z_T_co | _NestedSequence[_T_co]r   )r   r   s   "€r   r   r   9   s   ø€ ÷ "ñ "¡ð "Ð,Lñ "r   c               ó   € \         h)zImplement ``self[x]``.r   )r   r    s   ""r   Ú__getitem__Ú_NestedSequence.__getitem__9   r   r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r   Úxr   )ÚobjectÚbool)r   r   s   "€r   r   r   =   s   ø€ ÷ "ñ "™fð "©Dñ "r   c               ó   € \         h)zImplement ``x in self``.r   )r   r%   s   ""r   Ú__contains__Ú_NestedSequence.__contains__=   r   r   c                ó   <€ V ^8„  d   QhRR/# ©r   r   z(Iterator[_T_co | _NestedSequence[_T_co]]© )r   r   s   "€r   r   r   A   s   ø€ ÷ "ñ "ÐGñ "r   c               ó   € \         h)zImplement ``iter(self)``.r   r   s   "r   Ú__iter__Ú_NestedSequence.__iter__A   r   r   c                ó   <€ V ^8„  d   QhRR/# r,   r-   )r   r   s   "€r   r   r   E   s   ø€ ÷ "ñ "Ð!Kñ "r   c               ó   € \         h)zImplement ``reversed(self)``.r   r   s   "r   Ú__reversed__Ú_NestedSequence.__reversed__E   r   r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# ©r   Úvaluer   ©r   r   )r   r   s   "€r   r   r   I   ó   ø€ ÷ "ñ "™3ð "¡cñ "r   c               ó   € \         h)z,Return the number of occurrences of `value`.r   ©r   r7   s   ""r   ÚcountÚ_NestedSequence.countI   r   r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r6   r8   )r   r   s   "€r   r   r   M   r9   r   c               ó   € \         h)z"Return the first index of `value`.r   r;   s   ""r   r    Ú_NestedSequence.indexM   r   r   r-   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r"   r)   r/   r3   r<   r    Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r      sQ   ø‡ € ñ$÷L"ð "÷"ð "÷"ð "÷"ð "÷"ð "÷"ð "÷"ö "r   N)rE   Útypingr   r   r   r   r   Úcollections.abcr   Ú__all__r	   r   r-   r   r   Ú<module>rK      sJ   ðÙ 9ç KÕ KçÝ(àÐ
€á� 4Ô(€ð ôA"�h˜u•oó A"ó òA"r   