+
    eig  c            
       s8  a  R t,0 t R t^ RIHtHtHtHtHtHt ^ RI	t	^ RI
t^ RIHt ^ RIHt  ! R R]4      t]! ]P$                  ]P$                  P&                  ]P(                  4      tR]! ]P,                  ]P,                  P&                  ]4      R]! ]P.                  ]P.                  P&                  ]4      R]! ]P0                  RR4      R]/t]	P4                  P7                  R	]P9                  4       ]P;                  4       R
7      R R l4       t]	P4                  P7                  R	]P9                  4       ]P;                  4       R
7      R R l4       t]	P4                  P7                  R	]P9                  4       ]P;                  4       R
7      R R l4       t ]	P4                  P7                  R	]P9                  4       ]P;                  4       R
7      R R l4       t!R R lt"R]PF                  ]PH                  ! ^4      3R]PJ                  ]PL                  ! ^
4      3R]PN                  ]PL                  ! ^
4      3R]PP                  ^.3/t)] ^ k ]	P4                  P7                  R])PU                  4       ])P;                  4       R
7       ! R R4      4       t+R# )z)Test the runtime usage of `numpy.typing`.)Any
NamedTupleUnionget_args
get_originget_type_hintsNc                   s,   a  ] tR t^t o V 3R ltRtV tR# )TypeTupc                s`   < V ^8  d   Qh/ S[ ;R&   S[S[ R3,          ;R&   S[ R,          ;R&   # )   typ.argsNorigin)typetupleformat__classdict__   "F/usr/lib64/python3.14/site-packages/numpy/typing/tests/test_runtime.py__annotate__ZTypeTup.__annotate__   s4     	I 
c	
  4K      N)__name__
__module____qualname____firstlineno__Z__annotate_func____static_attributes____classdictcell__r      @r   r   r      s      r   r   	ArrayLike	DTypeLikeNBitBaseNDArrayzname,tup)Zidsc                4    V ^8  d   QhR\         R\        RR/# r   nametupreturnNr   r   r      "r   r   r   $   s!       7 t r   c                J    VP                   VP                  r2\        V4      pR# )zTest `typing.get_args`.N)r   r	   r   r#   r$   r   refout   &&   r   test_get_argsr.   #   s     ww
3-Cr   c                r!   r"   r&   r'   r(   r   r   r   ,   s!      $ W  r   c                r)   )zTest `typing.get_origin`.N)r   r
   r   r*   r-   r   test_get_originr/   +   s     ww


S/Cr   c                r!   r"   r&   r'   r(   r   r   r   4   s!      d  T r   c                sf   a VP                   oV3R lR lp\        V4      pRSR\        R4      /pR# )zTest `typing.get_type_hints`.c                "   < V ^8  d   QhRSRR/# r   ar%   Nr   )r   r   r   r   r   Z)test_get_type_hints.<locals>.__annotate__8   s    """"r   c                     R # Nr   r2      &r   funcZ!test_get_type_hints.<locals>.func8   s    dr   r2   r%   Nr   r   r   )r#   r$   r7   r,   r+   r   s   &&   @r   test_get_type_hintsr9   3   s0     ''C""

CXtDz
*Cr   c                r!   r"   r&   r'   r(   r   r   r   @   s!      $ W  r   c                sr   a RV  2VP                   uopV3R lR lp\        V4      pRVR\        R4      /pR# )zATest `typing.get_type_hints` with string-representation of types.znpt.c                r0   r1   r   )r   typ_strr   r   r   Z-test_get_type_hints_str.<locals>.__annotate__D   s    &&&D&r   c                 r3   r4   r   r5   r6   r   r7   Z%test_get_type_hints_str.<locals>.funcD   s    $r   r2   r%   Nr8   )r#   r$   r   r7   r,   r+   r:   s   &&    @r   test_get_type_hints_strr;   ?   s<     $=#''LGS&&

CXtDz
*Cr   c                s    V ^8  d   QhRR/# )r   r%   Nr   r'   r(   r   r   r   K   s      4 r   c                 s`    \         P                  4       p \        \        P                  4      pR# )zCTest that ``TYPES.keys()`` and ``numpy.typing.__all__`` are synced.N)TYPESkeysZsetnptZ__all__)r=   r+   s     r   	test_keysr?   K   s    ::<D
ckk
Cr   _SupportsDType_SupportsArray_SupportsArrayFunc_NestedSequencezcls,objc                   sD   a  ] tR t^Zt o V 3R lR ltV 3R lR ltRtV tR# )TestRuntimeProtocolc                :   < V ^8  d   QhRS[ S[,          RS[RR/# r   clsobjr%   Nr   r    objectr   r   r   r    TestRuntimeProtocol.__annotate__\   s&     ) )49 )6 )d )r   c                r3   r4   r   ZselfrG   rH      &&&r   test_isinstanceZ#TestRuntimeProtocol.test_isinstance\   s    r   c                rE   rF   rI   r   r   r   r   rK   `   s&     / /49 /6 /d /r   c                s^    V\         P                  J d   \        P                  ! R 4       R# R# )z<Protocols with non-method members don't support issubclass()N)_nptr@   pytestZxfailrL   rM   r   test_issubclassZ#TestRuntimeProtocol.test_issubclass`   s$    $%%%LLN &r   r   N)r   r   r   r   rN   rQ   r   r   r   r   r   rD   rD   Z   s     ) )/ /r   rD   c                s    V ^8  d   Qh/ ^ \         9   d7   \        \        \        \        \
        ,          \        3,          3,          ;R&   # )r   	PROTOCOLS)__conditional_annotations__ZdictZstrr   r   r    rJ   r'   r(   r   r   r      s8     / /b 4U49f,--. c 0r   r   )-rS   Z__doc__Ztypingr    r   r   r   r   r   rP   ZnumpyZnpZnumpy._typingZ_typingrO   Znumpy.typingr>   r   r    Z__args__ZndarrayZ
NDArrayTupr   r   r   r<   ZmarkZparametrizeZitemsr=   r.   r/   r9   r;   r?   r@   Zint64rA   ZarangerB   rC   rR   ZvaluesrD   r   )rS   r   r   <module>rT      s0   /     j  S[[#++"6"6

C
 (>(>F(>(>Fb$/z		 U[[]

E F U[[]

E F U[[]

E F U[[]

E F t**BHHQK8t**BIIbM:422BIIbMB,,qc2	2	  I$4$4$6INN<LM/ / N/r   