1j (dZddlmZgdZddlmZmZmZmZm Z m Z m Z ddl m Z ddlmZmZmZmZmZmZmZmZmZmZmZe dd ZGd d e eZed Zee eeeeeeeeeef ZeZeZGdde Z dS)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)ArrayDeviceDtypeSupportsDLPackSupportsBufferProtocol PyCapsule)AnyLiteralSequenceTypeUnionTypeVarProtocol)r) dtypeint8int16int32int64uint8uint16uint32uint64float32float64_T_coT) covariantceZdZddZd dZdS) NestedSequencekeyintreturn_T_co | NestedSequence[_T_co]cdSN)selfr!s k/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib64/python3.11/site-packages/numpy/array_api/_typing.py __getitem__zNestedSequence.__getitem__0cdSr&r')r(s r)__len__zNestedSequence.__len__1r+r,N)r!r"r#r$)r#r")__name__ __module__ __qualname__r*r.r'r,r)r r /s(LLLL$$$$$$r,r cpuceZdZddd dZdS) r.)streamr4Noner#r cdSr&r')r(r4s r) __dlpack__zSupportsDLPack.__dlpack__Gr+r,N)r4r5r#r )r/r0r1r7r'r,r)rrFs%.1DDDDDDDDr,rN)!__doc__ __future__r__all__typingr r r r rrr _array_objectrnumpyrrrrrrrrrrrrr rrrr rr'r,r)r>s#"""""   !                            4(((%%%%%Xe_%%%  e               EEEEEXEEEEEr,