o
    dY                     @  s:   d dl mZ ddlmZ ddlmZ d dlZdddZdS )    )annotations   )Array)_integer_dtypesNxr   indicesaxisintreturnc               C  s>   |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.
    z+Only integer dtypes are allowed in indexingr   z%Only 1-dim indices array is supported)r   )
dtyper   	TypeErrorndim
ValueErrorr   _newnptake_array)r   r   r    r   h/var/www/html/visualizacion-main/env/lib/python3.10/site-packages/numpy/array_api/_indexing_functions.pyr      s
   

r   )r   r   r   r   r   r	   r
   r   )	
__future__r   _array_objectr   _dtypesr   numpyr   r   r   r   r   r   <module>   s
    