Skip to content

Commit 63089a4

Browse files
committed
dtype keyword is positional one in astype
1 parent 757ed59 commit 63089a4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dpnp/dpnp_iface_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ def isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False):
844844
)
845845
elif dpnp.issubdtype(b, dpnp.integer):
846846
dt = dpnp.result_type(b, 1.0, rtol, atol)
847-
b = dpnp.astype(b, dtype=dt)
847+
b = dpnp.astype(b, dt)
848848

849849
# Firstly handle finite values:
850850
# result = absolute(a - b) <= atol + rtol * absolute(b)

dpnp/dpnp_iface_statistics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,14 +900,14 @@ def cov(
900900
if fweights.ndim > 1:
901901
raise ValueError("cannot handle multidimensional fweights")
902902

903-
fweights = dpnp.astype(fweights, dtype=def_float)
903+
fweights = dpnp.astype(fweights, def_float)
904904

905905
if aweights is not None:
906906
dpnp.check_supported_arrays_type(aweights)
907907
if aweights.ndim > 1:
908908
raise ValueError("cannot handle multidimensional aweights")
909909

910-
aweights = dpnp.astype(aweights, dtype=def_float)
910+
aweights = dpnp.astype(aweights, def_float)
911911

912912
return dpnp_cov(
913913
m,

dpnp/dpnp_iface_trigonometric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2448,7 +2448,7 @@ def unwrap(p, discont=None, axis=-1, *, period=2 * dpnp.pi):
24482448
abs_p_diff = dpnp.abs(p_diff, out=p_diff)
24492449
ph_correct = dpnp.where(abs_p_diff < discont, 0, ph_correct, out=ph_correct)
24502450

2451-
up = dpnp.astype(p, dtype=dt, copy=True)
2451+
up = dpnp.astype(p, dt, copy=True)
24522452
up[slice1] = p[slice1]
24532453
up[slice1] += ph_correct.cumsum(axis=axis)
24542454
return up

0 commit comments

Comments
 (0)