diff options
author | Peter Andreas Entschev <peter@entschev.com> | 2020-11-19 02:07:48 -0800 |
---|---|---|
committer | Peter Andreas Entschev <peter@entschev.com> | 2020-11-19 02:08:38 -0800 |
commit | 1d7ad47a7bddfbdcdedbebe81ca87636f2e746ab (patch) | |
tree | fee42bacc6c37c6697194bc48d4972b2616c7aec /numpy/lib/twodim_base.py | |
parent | 196c6d1df7b51f0d49ece7e93d37ee82b8ca221f (diff) | |
download | numpy-1d7ad47a7bddfbdcdedbebe81ca87636f2e746ab.tar.gz |
REV: Make like= in Python functions strict
Diffstat (limited to 'numpy/lib/twodim_base.py')
-rw-r--r-- | numpy/lib/twodim_base.py | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py index 099fb2960..2b4cbdfbb 100644 --- a/numpy/lib/twodim_base.py +++ b/numpy/lib/twodim_base.py @@ -8,9 +8,7 @@ from numpy.core.numeric import ( asarray, where, int8, int16, int32, int64, empty, promote_types, diagonal, nonzero ) -from numpy.core.overrides import ( - array_function_dispatch_like, set_array_function_like_doc, set_module - ) +from numpy.core.overrides import set_array_function_like_doc, set_module from numpy.core import overrides from numpy.core import iinfo @@ -205,15 +203,7 @@ def eye(N, M=None, k=0, dtype=float, order='C', *, like=None): """ if like is not None: - return array_function_dispatch_like( - _eye_with_like, - N, - M=M, - k=k, - dtype=dtype, - order=order, - like=like - ) + return _eye_with_like(N, M=M, k=k, dtype=dtype, order=order, like=like) if M is None: M = N m = zeros((N, M), dtype=dtype, order=order) @@ -415,9 +405,7 @@ def tri(N, M=None, k=0, dtype=float, *, like=None): """ if like is not None: - return array_function_dispatch_like( - _tri_with_like, N, M=M, k=k, dtype=dtype, like=like - ) + return _tri_with_like(N, M=M, k=k, dtype=dtype, like=like) if M is None: M = N |