codekingpro/portable-devtools
114k
1import numpy as np
2
3i8 = np.int64()
4i4 = np.int32()
5u8 = np.uint64()
6b_ = np.bool()
7i = 0
8
9f8 = np.float64()
10
11b_ >> f8 # type: ignore[operator]
12i8 << f8 # type: ignore[operator]
13i | f8 # type: ignore[operator]
14i8 ^ f8 # type: ignore[operator]
15u8 & f8 # type: ignore[operator]
16~f8 # type: ignore[operator]
17# TODO: Certain mixes like i4 << u8 go to float and thus should fail
18 