@@ -18,98 +18,66 @@ i4_nd: npt.NDArray[np.int32]
18
18
19
19
###
20
20
21
- assert_type (i8 << i8 , np .int64 )
22
- assert_type (i8 >> i8 , np .int64 )
23
21
assert_type (i8 | i8 , np .int64 )
24
22
assert_type (i8 ^ i8 , np .int64 )
25
23
assert_type (i8 & i8 , np .int64 )
26
24
27
- assert_type (i8 << i4_nd , npt .NDArray [np .signedinteger ])
28
- assert_type (i8 >> i4_nd , npt .NDArray [np .signedinteger ])
29
25
assert_type (i8 | i4_nd , npt .NDArray [np .signedinteger ])
30
26
assert_type (i8 ^ i4_nd , npt .NDArray [np .signedinteger ])
31
27
assert_type (i8 & i4_nd , npt .NDArray [np .signedinteger ])
32
28
33
- assert_type (i4 << i4 , np .int32 )
34
- assert_type (i4 >> i4 , np .int32 )
35
29
assert_type (i4 | i4 , np .int32 )
36
30
assert_type (i4 ^ i4 , np .int32 )
37
31
assert_type (i4 & i4 , np .int32 )
38
32
39
- assert_type (i8 << i4 , np .int64 )
40
- assert_type (i8 >> i4 , np .int64 )
41
33
assert_type (i8 | i4 , np .int64 )
42
34
assert_type (i8 ^ i4 , np .int64 )
43
35
assert_type (i8 & i4 , np .int64 )
44
36
45
- assert_type (i8 << b1 , np .int64 )
46
- assert_type (i8 >> b1 , np .int64 )
47
37
assert_type (i8 | b1 , np .int64 )
48
38
assert_type (i8 ^ b1 , np .int64 )
49
39
assert_type (i8 & b1 , np .int64 )
50
40
51
- assert_type (i8 << b , np .int64 )
52
- assert_type (i8 >> b , np .int64 )
53
41
assert_type (i8 | b , np .int64 )
54
42
assert_type (i8 ^ b , np .int64 )
55
43
assert_type (i8 & b , np .int64 )
56
44
57
- assert_type (u8 << u8 , np .uint64 )
58
- assert_type (u8 >> u8 , np .uint64 )
59
45
assert_type (u8 | u8 , np .uint64 )
60
46
assert_type (u8 ^ u8 , np .uint64 )
61
47
assert_type (u8 & u8 , np .uint64 )
62
48
63
- assert_type (u4 << u4 , np .uint32 )
64
- assert_type (u4 >> u4 , np .uint32 )
65
49
assert_type (u4 | u4 , np .uint32 )
66
50
assert_type (u4 ^ u4 , np .uint32 )
67
51
assert_type (u4 & u4 , np .uint32 )
68
52
69
- assert_type (u4 << i4 , np .int64 )
70
- assert_type (u4 >> i4 , np .int64 )
71
53
assert_type (u4 | i4 , np .int64 )
72
54
assert_type (u4 ^ i4 , np .int64 )
73
55
assert_type (u4 & i4 , np .int64 )
74
56
75
- assert_type (u4 << i , np .uint32 )
76
- assert_type (u4 >> i , np .uint32 )
77
57
assert_type (u4 | i , np .uint32 )
78
58
assert_type (u4 ^ i , np .uint32 )
79
59
assert_type (u4 & i , np .uint32 )
80
60
81
- assert_type (u8 << b1 , np .uint64 )
82
- assert_type (u8 >> b1 , np .uint64 )
83
61
assert_type (u8 | b1 , np .uint64 )
84
62
assert_type (u8 ^ b1 , np .uint64 )
85
63
assert_type (u8 & b1 , np .uint64 )
86
64
87
- assert_type (u8 << b , np .uint64 )
88
- assert_type (u8 >> b , np .uint64 )
89
65
assert_type (u8 | b , np .uint64 )
90
66
assert_type (u8 ^ b , np .uint64 )
91
67
assert_type (u8 & b , np .uint64 )
92
68
93
- assert_type (b1 << b1 , np .int8 )
94
- assert_type (b1 >> b1 , np .int8 )
95
69
assert_type (b1 | b1 , np .bool )
96
70
assert_type (b1 ^ b1 , np .bool )
97
71
assert_type (b1 & b1 , np .bool )
98
72
99
- assert_type (b1 << i4_nd , npt .NDArray [np .signedinteger ])
100
- assert_type (b1 >> i4_nd , npt .NDArray [np .signedinteger ])
101
73
assert_type (b1 | i4_nd , npt .NDArray [np .signedinteger ])
102
74
assert_type (b1 ^ i4_nd , npt .NDArray [np .signedinteger ])
103
75
assert_type (b1 & i4_nd , npt .NDArray [np .signedinteger ])
104
76
105
- assert_type (b1 << b , np .int8 )
106
- assert_type (b1 >> b , np .int8 )
107
77
assert_type (b1 | b , np .bool )
108
78
assert_type (b1 ^ b , np .bool )
109
79
assert_type (b1 & b , np .bool )
110
80
111
- assert_type (b1 << i , np .intp )
112
- assert_type (b1 >> i , np .intp )
113
81
assert_type (b1 | i , np .intp )
114
82
assert_type (b1 ^ i , np .intp )
115
83
assert_type (b1 & i , np .intp )
@@ -119,4 +87,3 @@ assert_type(~i4, np.int32)
119
87
assert_type (~ u8 , np .uint64 )
120
88
assert_type (~ u4 , np .uint32 )
121
89
assert_type (~ b1 , np .bool )
122
- assert_type (~ i4_nd , npt .NDArray [np .int32 ])
0 commit comments