summaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/numpy/typing/tests/data/fail/comparisons.pyi
blob: 3c8a94bff240374c590d43b01031aff5337d6008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import numpy as np
import numpy.typing as npt

AR_i: npt.NDArray[np.int64]
AR_f: npt.NDArray[np.float64]
AR_c: npt.NDArray[np.complex128]
AR_m: npt.NDArray[np.timedelta64]
AR_M: npt.NDArray[np.datetime64]

AR_f > AR_m  # type: ignore[operator]
AR_c > AR_m  # type: ignore[operator]

AR_m > AR_f  # type: ignore[operator]
AR_m > AR_c  # type: ignore[operator]

AR_i > AR_M  # type: ignore[operator]
AR_f > AR_M  # type: ignore[operator]
AR_m > AR_M  # type: ignore[operator]

AR_M > AR_i  # type: ignore[operator]
AR_M > AR_f  # type: ignore[operator]
AR_M > AR_m  # type: ignore[operator]

AR_i > str()  # type: ignore[operator]
AR_i > bytes()  # type: ignore[operator]
str() > AR_M  # type: ignore[operator]
bytes() > AR_M  # type: ignore[operator]