Skip to content

Commit 7119aec

Browse files
Use @wraps to restore proper signature in DPNPBinaryFuncOutKw
1 parent e917db4 commit 7119aec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dpnp/dpnp_algo/dpnp_elementwise_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
# *****************************************************************************
2828

2929
import warnings
30+
from functools import wraps
3031

3132
import dpctl.tensor as dpt
3233
import dpctl.tensor._copy_utils as dtc
@@ -731,6 +732,7 @@ def outer(
731732
class DPNPBinaryFuncOutKw(DPNPBinaryFunc):
732733
"""DPNPBinaryFunc that deprecates positional `out` argument."""
733734

735+
@wraps(DPNPBinaryFunc.__call__)
734736
def __call__(self, *args, **kwargs):
735737
if len(args) > self.nin:
736738
warnings.warn(

0 commit comments

Comments
 (0)