File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ def count_nonzero(
431
431
axis : None = ...,
432
432
* ,
433
433
keepdims : L [False ] = ...,
434
- ) -> int : ...
434
+ ) -> intp : ...
435
435
@overload
436
436
def count_nonzero (
437
437
a : ArrayLike ,
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ AR_O: npt.NDArray[np.object_]
27
27
B : list [int ]
28
28
C : SubClass
29
29
30
- assert_type (np .count_nonzero (i8 ), int )
31
- assert_type (np .count_nonzero (AR_i8 ), int )
32
5D1F
- assert_type (np .count_nonzero (B ), int )
30
+ assert_type (np .count_nonzero (i8 ), np . intp )
31
+ assert_type (np .count_nonzero (AR_i8 ), np . intp )
32
+ assert_type (np .count_nonzero (B ), np . intp )
33
33
assert_type (np .count_nonzero (AR_i8 , keepdims = True ), Any )
34
34
assert_type (np .count_nonzero (AR_i8 , axis = 0 ), Any )
35
35
You can’t perform that action at this time.
0 commit comments