Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/numpy/typing/tests/data/fail/ |
Upload File : |
from typing import Any import numpy as np AR_i: np.ndarray[Any, np.dtype[np.int64]] AR_f: np.ndarray[Any, np.dtype[np.float64]] AR_c: np.ndarray[Any, np.dtype[np.complex128]] AR_m: np.ndarray[Any, np.dtype[np.timedelta64]] AR_M: np.ndarray[Any, np.dtype[np.datetime64]] AR_f > AR_m # E: Unsupported operand types AR_c > AR_m # E: Unsupported operand types AR_m > AR_f # E: Unsupported operand types AR_m > AR_c # E: Unsupported operand types AR_i > AR_M # E: Unsupported operand types AR_f > AR_M # E: Unsupported operand types AR_m > AR_M # E: Unsupported operand types AR_M > AR_i # E: Unsupported operand types AR_M > AR_f # E: Unsupported operand types AR_M > AR_m # E: Unsupported operand types # Unfortunately `NoReturn` errors are not the most descriptive _1 = AR_i > str() # E: Need type annotation _2 = AR_i > bytes() # E: Need type annotation _3 = str() > AR_M # E: Need type annotation _4 = bytes() > AR_M # E: Need type annotation