o
    ˜šÍhC  ã                   @  s   d Z ddlmZ g d¢ZddlZddlmZmZmZm	Z	m
Z
mZmZ ddlmZ ddlmZmZmZmZmZmZmZmZmZmZmZ ed	d
d�ZG dd„ dee ƒZed Zee
eeeeeeeeeef
  Zejdkrrddl m!Z" neZ"eZ#G dd„ deƒZ$dS )a  
This file defines the types for type annotations.

These names aren't part of the module namespace, but they are used in the
annotations in the function signatures. The functions in the module are only
valid for inputs that match the given type annotations.
é    )Úannotations)ÚArrayÚDeviceÚDtypeÚSupportsDLPackÚSupportsBufferProtocolÚ	PyCapsuleN)ÚAnyÚLiteralÚSequenceÚTypeÚUnionÚTypeVarÚProtocolé   )r   )ÚdtypeÚint8Úint16Úint32Úint64Úuint8Úuint16Úuint32Úuint64Úfloat32Úfloat64Ú_T_coT)Ú	covariantc                   @  s    e Zd Zd
dd„Zddd„Zd	S )ÚNestedSequenceÚkeyÚintÚreturnú_T_co | NestedSequence[_T_co]c                C  ó   d S ©N© )Úselfr   r%   r%   úX/home/www/facesmatcher.com/frenv/lib/python3.10/site-packages/numpy/array_api/_typing.pyÚ__getitem__2   ó    zNestedSequence.__getitem__c                C  r#   r$   r%   )r&   r%   r%   r'   Ú__len__3   r)   zNestedSequence.__len__N)r   r    r!   r"   )r!   r    )Ú__name__Ú
__module__Ú__qualname__r(   r*   r%   r%   r%   r'   r   1   s    
r   Úcpu)é   é   )ÚBufferc                   @  s   e Zd Zddœd
dd„Zd	S )r   .)Ústreamr2   ÚNoner!   r   c               C  r#   r$   r%   )r&   r2   r%   r%   r'   Ú
__dlpack__L   r)   zSupportsDLPack.__dlpack__N)r2   r3   r!   r   )r+   r,   r-   r4   r%   r%   r%   r'   r   K   s    r   )%Ú__doc__Ú
__future__r   Ú__all__ÚsysÚtypingr	   r
   r   r   r   r   r   Z_array_objectr   Únumpyr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Úversion_infoÚcollections.abcr1   r   r   r   r%   r%   r%   r'   Ú<module>   s8    	$
4÷ÿ
