@@ -46,11 +46,13 @@ assert_type(np.choose([1], [True, True]), npt.NDArray[Any])
46
46
assert_type (np .choose ([1 ], AR_b ), npt .NDArray [np .bool ])
47
47
assert_type (np .choose ([1 ], AR_b , out = AR_f4 ), npt .NDArray [np .float32 ])
48
48
49
- assert_type (np .repeat (b , 1 ), npt .NDArray [np .bool ])
50
- assert_type (np .repeat (f4 , 1 ), npt .NDArray [np .float32 ])
51
- assert_type (np .repeat (f , 1 ), npt .NDArray [Any ])
52
- assert_type (np .repeat (AR_b , 1 ), npt .NDArray [np .bool ])
53
- assert_type (np .repeat (AR_f4 , 1 ), npt .NDArray [np .float32 ])
49
+ assert_type (np .repeat (b , 1 ), np .ndarray [tuple [int ], np .dtype [np .bool ]])
50
+ assert_type (np .repeat (b , 1 , axis = 0 ), npt .NDArray [np .bool ])
51
+ assert_type (np .repeat (f4 , 1 ), np .ndarray [tuple [int ], np .dtype [np .float32 ]])
52
+ assert_type (np .repeat (f , 1 ), np .ndarray [tuple [int ], np .dtype [Any ]])
53
+ assert_type (np .repeat (AR_b , 1 ), np .ndarray [tuple [int ], np .dtype [np .bool ]])
54
+ assert_type (np .repeat (AR_f4 , 1 ), np .ndarray [tuple [int ], np .dtype [np .float32 ]])
55
+ assert_type (np .repeat (AR_f4 , 1 , axis = 0 ), npt .NDArray [np .float32 ])
54
56
55
57
# TODO: array_bdd tests for np.put()
56
58
0 commit comments