o
    Ô­jË  ã                   @  s@   d dl mZ ddlmZ ddlmZ d dlZddœddd„ZdS )é    )Úannotationsé   )ÚArray)Ú_integer_dtypesN©ÚaxisÚxr   Úindicesr   úOptional[int]Ú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Ú
ValueErrorÚdtyper   Ú	TypeErrorr   Ú_newÚnpÚtakeÚ_array)r   r	   r   © r   ú`/var/www/html/CropPilot/venv/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
    