PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
numpy
/
typing
/
tests
/
data
/
fail
""" 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
[-] lib_utils.pyi
[open]
[+]
..
[-] ndarray_misc.pyi
[open]
[-] numerictypes.pyi
[open]
[-] stride_tricks.pyi
[open]
[-] random.pyi
[open]
[-] ndarray.pyi
[open]
[-] linalg.pyi
[open]
[-] npyio.pyi
[open]
[-] memmap.pyi
[open]
[-] index_tricks.pyi
[open]
[-] scalars.pyi
[open]
[-] ufunclike.pyi
[open]
[-] arrayterator.pyi
[open]
[-] constants.pyi
[open]
[-] array_pad.pyi
[open]
[-] lib_function_base.pyi
[open]
[-] array_like.pyi
[open]
[-] einsumfunc.pyi
[open]
[-] modules.pyi
[open]
[-] flatiter.pyi
[open]
[-] false_positives.pyi
[open]
[-] array_constructors.pyi
[open]
[-] testing.pyi
[open]
[-] lib_version.pyi
[open]
[-] twodim_base.pyi
[open]
[-] fromnumeric.pyi
[open]
[-] histograms.pyi
[open]
[-] dtype.pyi
[open]
[-] nested_sequence.pyi
[open]
[-] lib_polynomial.pyi
[open]
[-] datasource.pyi
[open]
[-] chararray.pyi
[open]
[-] comparisons.pyi
[open]
[-] multiarray.pyi
[open]
[-] type_check.pyi
[open]
[-] rec.pyi
[open]
[-] warnings_and_errors.pyi
[open]
[-] arithmetic.pyi
[open]
[-] arrayprint.pyi
[open]
[-] nditer.pyi
[open]
[-] ufunc_config.pyi
[open]
[-] ufuncs.pyi
[open]
[-] bitwise_ops.pyi
[open]
[-] char.pyi
[open]
[-] shape_base.pyi
[open]