
    {h-i                    >    d dl mZ ddlmZ ddlmZ d dlZddddZy)	    )annotations   )Array)_integer_dtypesNaxisc              &   || j                   dk7  rt        d      |j                  t        vrt	        d      |j                   dk7  rt        d      t        j                  t        j                  | j                  |j                  |            S )zx
    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      bD:\DhanshreeandTeamAI\Github\ai_code\venv\Lib\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r   