a
    ;e                     @  sJ   d dl mZ ddlmZ ddlmZ d dlZddddddd	d
dZdS )    )annotations   )Array)_integer_dtypesNaxisr   zOptional[int])xindicesr   returnc               C  sX   |du r| j dkrtd|jtvr,td|j dkr>tdttj| j	|j	|dS )zx
    Array API compatible wrapper for :py:func:`np.take <numpy.take>`.

    See its docstring for more information.
    Nr   z$axis must be specified when ndim > 1z+Only integer dtypes are allowed in indexingz%Only 1-dim indices array is supportedr   )
ndim
ValueErrorZdtyper   	TypeErrorr   _newnptakeZ_array)r   r	   r    r   W/var/www/sunrise/env/lib/python3.9/site-packages/numpy/array_api/_indexing_functions.pyr      s    

r   )	
__future__r   Z_array_objectr   Z_dtypesr   numpyr   r   r   r   r   r   <module>   s   