Skip to content

Commit 041d9e6

Browse files
author
Vahid Tavanashad
committed
use numpy.bool_
1 parent ec48a38 commit 041d9e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dpnp/dpnp_iface_nanfunctions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ def nanstd(
987987
ddof : {int, float}, optional
988988
Means Delta Degrees of Freedom. The divisor used in calculations
989989
is ``N - ddof``, where ``N`` the number of non-NaN elements.
990-
Default: `0.0`.
990+
Default: ``0.0``.
991991
keepdims : {None, bool}, optional
992992
If ``True``, the reduced axes (dimensions) are included in the result
993993
as singleton dimensions, so that the returned array remains
@@ -1087,7 +1087,7 @@ def nanvar(
10871087
ddof : {int, float}, optional
10881088
Means Delta Degrees of Freedom. The divisor used in calculations
10891089
is ``N - ddof``, where ``N`` represents the number of non-NaN elements.
1090-
Default: `0.0`.
1090+
Default: ``0.0``.
10911091
keepdims : {None, bool}, optional
10921092
If ``True``, the reduced axes (dimensions) are included in the result
10931093
as singleton dimensions, so that the returned array remains

dpnp/tests/test_umath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def test_values(self, dt):
476476

477477
@pytest.mark.parametrize(
478478
"dt",
479-
[numpy.bool, numpy.int32, numpy.int64, numpy.float32, numpy.float64],
479+
[numpy.bool_, numpy.int32, numpy.int64, numpy.float32, numpy.float64],
480480
)
481481
def test_range(self, dt):
482482
a = numpy.array([1000000, -1000000, 1000200, -1000200], dtype=dt)

0 commit comments

Comments
 (0)