PATH: //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/typing/tests/data/fail
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 arithmetic.pyi
↓
X
📄 array_constructors.pyi
↓
X
📄 array_like.pyi
↓
X
📄 array_pad.pyi
↓
X
📄 arrayprint.pyi
↓
X
📄 arrayterator.pyi
↓
X
📄 bitwise_ops.pyi
↓
X
📄 char.pyi
↓
X
📄 chararray.pyi
↓
X
📄 comparisons.pyi
↓
X
📄 constants.pyi
↓
X
📄 datasource.pyi
↓
X
📄 dtype.pyi
↓
X
📄 einsumfunc.pyi
↓
X
📄 false_positives.pyi
↓
X
📄 flatiter.pyi
↓
X
📄 fromnumeric.pyi
↓
X
📄 histograms.pyi
↓
X
📄 index_tricks.pyi
↓
X
📄 lib_function_base.pyi
↓
X
📄 lib_polynomial.pyi
↓
X
📄 lib_utils.pyi
↓
X
📄 lib_version.pyi
↓
X
📄 linalg.pyi
↓
X
📄 memmap.pyi
↓
X
📄 modules.pyi
↓
X
📄 multiarray.pyi
↓
X
📄 ndarray.pyi
↓
X
📄 ndarray_misc.pyi
↓
X
📄 nditer.pyi
↓
X
📄 nested_sequence.pyi
↓
X
📄 npyio.pyi
↓
X
📄 numerictypes.pyi
↓
X
📄 random.pyi
↓
X
📄 rec.pyi
↓
X
📄 scalars.pyi
↓
X
📄 shape_base.pyi
↓
X
📄 stride_tricks.pyi
↓
X
📄 testing.pyi
↓
X
📄 twodim_base.pyi
↓
X
📄 type_check.pyi
↓
X
📄 ufunc_config.pyi
↓
X
📄 ufunclike.pyi
↓
X
📄 ufuncs.pyi
↓
X
📄 warnings_and_errors.pyi
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: ndarray_misc.pyi
""" Tests for miscellaneous (non-magic) ``np.ndarray``/``np.generic`` methods. More extensive tests are performed for the methods' function-based counterpart in `../from_numeric.py`. """ from typing import Any import numpy as np f8: np.float64 AR_f8: np.ndarray[Any, np.dtype[np.float64]] AR_M: np.ndarray[Any, np.dtype[np.datetime64]] AR_b: np.ndarray[Any, np.dtype[np.bool_]] ctypes_obj = AR_f8.ctypes reveal_type(ctypes_obj.get_data()) # E: has no attribute reveal_type(ctypes_obj.get_shape()) # E: has no attribute reveal_type(ctypes_obj.get_strides()) # E: has no attribute reveal_type(ctypes_obj.get_as_parameter()) # E: has no attribute f8.argpartition(0) # E: has no attribute f8.diagonal() # E: has no attribute f8.dot(1) # E: has no attribute f8.nonzero() # E: has no attribute f8.partition(0) # E: has no attribute f8.put(0, 2) # E: has no attribute f8.setfield(2, np.float64) # E: has no attribute f8.sort() # E: has no attribute f8.trace() # E: has no attribute AR_M.__int__() # E: Invalid self argument AR_M.__float__() # E: Invalid self argument AR_M.__complex__() # E: Invalid self argument AR_b.__index__() # E: Invalid self argument AR_f8[1.5] # E: No overload variant AR_f8["field_a"] # E: No overload variant AR_f8[["field_a", "field_b"]] # E: Invalid index type AR_f8.__array_finalize__(object()) # E: incompatible type
SIMPAN PERUBAHAN