diff options
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/overrides.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/numpy/core/overrides.py b/numpy/core/overrides.py index 71610b28b..c2b5fb7fa 100644 --- a/numpy/core/overrides.py +++ b/numpy/core/overrides.py @@ -34,15 +34,6 @@ def set_array_function_like_doc(public_api): return public_api -def array_function_dispatch_like(func, *args, **kwargs): - if not hasattr(type(kwargs['like']), '__array_function__'): - raise TypeError( - 'The `like` object must implement the `__array_function__` ' - 'protocol.' - ) - return func(*args, **kwargs) - - add_docstring( implement_array_function, """ |
