diff options
author | Allan Haldane <ealloc@gmail.com> | 2018-10-25 14:04:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 14:04:31 -0400 |
commit | 872372bd56ccb5fe98faae8be7d14e4a8c69e037 (patch) | |
tree | 9cf7e8a349b5f5c792d2cb63fb6fb627de6860a6 /numpy/core/arrayprint.py | |
parent | 8aa121415760cc6839a546c3f84e238d1dfa1aa6 (diff) | |
parent | 9660f011e126e60e76ce8925686f59c8a4d1d00a (diff) | |
download | numpy-872372bd56ccb5fe98faae8be7d14e4a8c69e037.tar.gz |
Merge pull request #12251 from shoyer/array-function-error-msg
MAINT: improved error message when no __array_function__ implementation found
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 1b9fbbfa9..3201b2f78 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -506,7 +506,7 @@ def _array2string_dispatcher( return (a,) -@array_function_dispatch(_array2string_dispatcher) +@array_function_dispatch(_array2string_dispatcher, module='numpy') def array2string(a, max_line_width=None, precision=None, suppress_small=None, separator=' ', prefix="", style=np._NoValue, formatter=None, threshold=None, @@ -1386,7 +1386,7 @@ def _array_repr_dispatcher( return (arr,) -@array_function_dispatch(_array_repr_dispatcher) +@array_function_dispatch(_array_repr_dispatcher, module='numpy') def array_repr(arr, max_line_width=None, precision=None, suppress_small=None): """ Return the string representation of an array. @@ -1480,7 +1480,7 @@ def _array_str_dispatcher( return (a,) -@array_function_dispatch(_array_str_dispatcher) +@array_function_dispatch(_array_str_dispatcher, module='numpy') def array_str(a, max_line_width=None, precision=None, suppress_small=None): """ Return a string representation of the data in an array. |