OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
hps
/
faces
/
faces
/
lib
/
python3.10
/
site-packages
/
numpy
/
array_api
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/26/2024 01:27:22 PM
rwxr-xr-x
📄
__init__.py
9.98 KB
10/26/2024 01:27:11 PM
rw-r--r--
📁
__pycache__
-
10/26/2024 01:28:08 PM
rwxr-xr-x
📄
_array_object.py
42.21 KB
10/26/2024 01:27:08 PM
rw-r--r--
📄
_constants.py
66 bytes
10/26/2024 01:27:09 PM
rw-r--r--
📄
_creation_functions.py
9.81 KB
10/26/2024 01:27:09 PM
rw-r--r--
📄
_data_type_functions.py
4.38 KB
10/26/2024 01:27:09 PM
rw-r--r--
📄
_dtypes.py
3.62 KB
10/26/2024 01:27:09 PM
rw-r--r--
📄
_elementwise_functions.py
24.19 KB
10/26/2024 01:27:10 PM
rw-r--r--
📄
_manipulation_functions.py
2.94 KB
10/26/2024 01:27:10 PM
rw-r--r--
📄
_searching_functions.py
1.42 KB
10/26/2024 01:27:10 PM
rw-r--r--
📄
_set_functions.py
2.88 KB
10/26/2024 01:27:10 PM
rw-r--r--
📄
_sorting_functions.py
1.71 KB
10/26/2024 01:27:11 PM
rw-r--r--
📄
_statistical_functions.py
3.3 KB
10/26/2024 01:27:11 PM
rw-r--r--
📄
_typing.py
1.34 KB
10/26/2024 01:27:11 PM
rw-r--r--
📄
_utility_functions.py
824 bytes
10/26/2024 01:27:11 PM
rw-r--r--
📄
linalg.py
17.44 KB
10/26/2024 01:27:07 PM
rw-r--r--
📄
setup.py
341 bytes
10/26/2024 01:27:08 PM
rw-r--r--
📁
tests
-
10/26/2024 01:29:20 PM
rwxr-xr-x
Editing: _typing.py
Close
""" 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. """ from __future__ import annotations __all__ = [ "Array", "Device", "Dtype", "SupportsDLPack", "SupportsBufferProtocol", "PyCapsule", ] import sys from typing import ( Any, Literal, Sequence, Type, Union, TYPE_CHECKING, TypeVar, Protocol, ) from ._array_object import Array from numpy import ( dtype, int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64, ) _T_co = TypeVar("_T_co", covariant=True) class NestedSequence(Protocol[_T_co]): def __getitem__(self, key: int, /) -> _T_co | NestedSequence[_T_co]: ... def __len__(self, /) -> int: ... Device = Literal["cpu"] if TYPE_CHECKING or sys.version_info >= (3, 9): Dtype = dtype[Union[ int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64, ]] else: Dtype = dtype SupportsBufferProtocol = Any PyCapsule = Any class SupportsDLPack(Protocol): def __dlpack__(self, /, *, stream: None = ...) -> PyCapsule: ...