Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/typing/tests/data/fail/ |
import numpy as np import numpy.typing as npt AR_f8: npt.NDArray[np.float64] AR_O: npt.NDArray[np.object_] AR_M: npt.NDArray[np.datetime64] np.linalg.tensorsolve(AR_O, AR_O) # E: incompatible type np.linalg.solve(AR_O, AR_O) # E: incompatible type np.linalg.tensorinv(AR_O) # E: incompatible type np.linalg.inv(AR_O) # E: incompatible type np.linalg.matrix_power(AR_M, 5) # E: incompatible type np.linalg.cholesky(AR_O) # E: incompatible type np.linalg.qr(AR_O) # E: incompatible type np.linalg.qr(AR_f8, mode="bob") # E: No overload variant np.linalg.eigvals(AR_O) # E: incompatible type np.linalg.eigvalsh(AR_O) # E: incompatible type np.linalg.eigvalsh(AR_O, UPLO="bob") # E: No overload variant np.linalg.eig(AR_O) # E: incompatible type np.linalg.eigh(AR_O) # E: incompatible type np.linalg.eigh(AR_O, UPLO="bob") # E: No overload variant np.linalg.svd(AR_O) # E: incompatible type np.linalg.cond(AR_O) # E: incompatible type np.linalg.cond(AR_f8, p="bob") # E: incompatible type np.linalg.matrix_rank(AR_O) # E: incompatible type np.linalg.pinv(AR_O) # E: incompatible type np.linalg.slogdet(AR_O) # E: incompatible type np.linalg.det(AR_O) # E: incompatible type np.linalg.norm(AR_f8, ord="bob") # E: No overload variant np.linalg.multi_dot([AR_M]) # E: incompatible type