PATH: //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/core
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📄 __init__.pyi
↓
X
📁 __pycache__/
X
📄 _add_newdocs.py
↓
X
📄 _add_newdocs_scalars.py
↓
X
📄 _asarray.py
↓
X
📄 _asarray.pyi
↓
X
📄 _dtype.py
↓
X
📄 _dtype_ctypes.py
↓
X
📄 _exceptions.py
↓
X
📄 _internal.py
↓
X
📄 _internal.pyi
↓
X
📄 _machar.py
↓
X
📄 _methods.py
↓
X
📄 _multiarray_tests.cpython-311-x86_64-linux-gnu.so
↓
X
📄 _multiarray_umath.cpython-311-x86_64-linux-gnu.so
↓
X
📄 _operand_flag_tests.cpython-311-x86_64-linux-gnu.so
↓
X
📄 _rational_tests.cpython-311-x86_64-linux-gnu.so
↓
X
📄 _simd.cpython-311-x86_64-linux-gnu.so
↓
X
📄 _string_helpers.py
↓
X
📄 _struct_ufunc_tests.cpython-311-x86_64-linux-gnu.so
↓
X
📄 _type_aliases.py
↓
X
📄 _type_aliases.pyi
↓
X
📄 _ufunc_config.py
↓
X
📄 _ufunc_config.pyi
↓
X
📄 _umath_tests.cpython-311-x86_64-linux-gnu.so
↓
X
📄 arrayprint.py
↓
X
📄 arrayprint.pyi
↓
X
📄 cversions.py
↓
X
📄 defchararray.py
↓
X
📄 defchararray.pyi
↓
X
📄 einsumfunc.py
↓
X
📄 einsumfunc.pyi
↓
X
📄 fromnumeric.py
↓
X
📄 fromnumeric.pyi
↓
X
📄 function_base.py
↓
X
📄 function_base.pyi
↓
X
📄 generate_numpy_api.py
↓
X
📄 getlimits.py
↓
X
📄 getlimits.pyi
↓
X
📁 include/
X
📁 lib/
X
📄 memmap.py
↓
X
📄 memmap.pyi
↓
X
📄 multiarray.py
↓
X
📄 multiarray.pyi
↓
X
📄 numeric.py
↓
X
📄 numeric.pyi
↓
X
📄 numerictypes.py
↓
X
📄 numerictypes.pyi
↓
X
📄 overrides.py
↓
X
📄 records.py
↓
X
📄 records.pyi
↓
X
📄 setup.py
↓
X
📄 setup_common.py
↓
X
📄 shape_base.py
↓
X
📄 shape_base.pyi
↓
X
📁 tests/
X
📄 umath.py
↓
X
📄 umath_tests.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: _internal.pyi
from typing import Any, TypeVar, overload, Generic import ctypes as ct from numpy import ndarray from numpy.ctypeslib import c_intp _CastT = TypeVar("_CastT", bound=ct._CanCastTo) # Copied from `ctypes.cast` _CT = TypeVar("_CT", bound=ct._CData) _PT = TypeVar("_PT", bound=None | int) # TODO: Let the likes of `shape_as` and `strides_as` return `None` # for 0D arrays once we've got shape-support class _ctypes(Generic[_PT]): @overload def __new__(cls, array: ndarray[Any, Any], ptr: None = ...) -> _ctypes[None]: ... @overload def __new__(cls, array: ndarray[Any, Any], ptr: _PT) -> _ctypes[_PT]: ... @property def data(self) -> _PT: ... @property def shape(self) -> ct.Array[c_intp]: ... @property def strides(self) -> ct.Array[c_intp]: ... @property def _as_parameter_(self) -> ct.c_void_p: ... def data_as(self, obj: type[_CastT]) -> _CastT: ... def shape_as(self, obj: type[_CT]) -> ct.Array[_CT]: ... def strides_as(self, obj: type[_CT]) -> ct.Array[_CT]: ...
SIMPAN PERUBAHAN