
    (ph                    B    S SK Jr  SSKJr  SSKJr  S SKrSS.SS jjrg)	    )annotations   )Array)_integer_dtypesNaxisc              .   Uc  U R                   S:w  a  [        S5      eUR                  [        ;  a  [	        S5      eUR                   S:w  a  [        S5      e[
        R                  " [        R                  " U R                  UR                  US95      $ )zl
Array API compatible wrapper for :py:func:`np.take <numpy.take>`.

See its docstring for more information.
r   z$axis must be specified when ndim > 1z+Only integer dtypes are allowed in indexingz%Only 1-dim indices array is supportedr   )
ndim
ValueErrordtyper   	TypeErrorr   _newnptake_array)xindicesr   s      V/var/www/html/venv/lib/python3.13/site-packages/numpy/array_api/_indexing_functions.pyr   r      ss     |!?@@}}O+EFF||q@AA::bggahhTBCC    )r   r   r   r   r   zOptional[int]returnr   )	
__future__r   _array_objectr   _dtypesr   numpyr   r    r   r   <module>r      s     "   $ ?C D Dr   