Skip to content

Commit 00fbb7d

Browse files
Update DeprecationWarning text
1 parent 0090fb0 commit 00fbb7d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3283,8 +3283,9 @@ def maximum(*args, **kwargs):
32833283
"""
32843284
if len(args) >= 3 and "out" not in kwargs:
32853285
warnings.warn(
3286-
"Positional `out` argument to `dpnp.maximum` is deprecated. "
3287-
"Please use the keyword form, e.g. `dpnp.maximum(a, b, out=c)`.",
3286+
"Passing more than 2 positional arguments is deprecated. If you "
3287+
"meant to use the third argument as an output, use the `out` "
3288+
"keyword argument instead.",
32883289
DeprecationWarning,
32893290
stacklevel=2,
32903291
)
@@ -3398,8 +3399,9 @@ def minimum(*args, **kwargs):
33983399
"""
33993400
if len(args) >= 3 and "out" not in kwargs:
34003401
warnings.warn(
3401-
"Positional `out` argument to `dpnp.minimum` is deprecated. "
3402-
"Please use the keyword form, e.g. `dpnp.minimum(a, b, out=c)`.",
3402+
"Passing more than 2 positional arguments is deprecated. If you "
3403+
"meant to use the third argument as an output, use the `out` "
3404+
"keyword argument instead.",
34033405
DeprecationWarning,
34043406
stacklevel=2,
34053407
)

0 commit comments

Comments
 (0)