diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2023-03-12 22:01:22 +0000 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2023-03-12 22:31:28 +0000 |
commit | 1da1663196c95b3811ca84d9e335f32cfeb05e32 (patch) | |
tree | e6d432a66dd5c16051a4e1a400567b100200639a /numpy/core/overrides.py | |
parent | ac6233b03df6562453ebda984f565f603e726710 (diff) | |
download | numpy-1da1663196c95b3811ca84d9e335f32cfeb05e32.tar.gz |
MAINT: remove `NUMPY_EXPERIMENTAL_ARRAY_FUNCTION` env var
As discussed in
https://mail.python.org/archives/list/numpy-discussion@python.org/thread/UKZJACAP5FUG7KP2AQDPE4P5ADNWLOHZ/
This flag was always meant to be temporary, and cleaning it up is
long overdue.
Diffstat (limited to 'numpy/core/overrides.py')
-rw-r--r-- | numpy/core/overrides.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/numpy/core/overrides.py b/numpy/core/overrides.py index e93ef5d88..6403e65b0 100644 --- a/numpy/core/overrides.py +++ b/numpy/core/overrides.py @@ -11,9 +11,6 @@ from numpy.core._multiarray_umath import ( ARRAY_FUNCTIONS = set() -ARRAY_FUNCTION_ENABLED = bool( - int(os.environ.get('NUMPY_EXPERIMENTAL_ARRAY_FUNCTION', 1))) - array_function_like_doc = ( """like : array_like, optional Reference object to allow the creation of arrays which are not @@ -140,17 +137,8 @@ def array_function_dispatch(dispatcher=None, module=None, verify=True, Returns ------- Function suitable for decorating the implementation of a NumPy function. - """ - - if not ARRAY_FUNCTION_ENABLED: - def decorator(implementation): - if docs_from_dispatcher: - add_docstring(implementation, dispatcher.__doc__) - if module is not None: - implementation.__module__ = module - return implementation - return decorator + """ def decorator(implementation): if verify: if dispatcher is not None: |