diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b915189..9a84ae6c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,7 @@ jobs: set -e python -m pip install pyflakes pytest pytest-doctestplus hypothesis pytest-cov pytest-flakes packaging if [[ ${{ matrix.numpy-version }} == 'latest' ]]; then - python -m pip install --pre --upgrade numpy + python -m pip install --upgrade numpy elif [[ ${{ matrix.numpy-version }} == 'dev' ]]; then python -m pip install --pre --upgrade --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy else diff --git a/ndindex/array.py b/ndindex/array.py index 4eafd990..358d3130 100644 --- a/ndindex/array.py +++ b/ndindex/array.py @@ -70,7 +70,7 @@ def _typecheck(self, idx, shape=None, _copy=True): def __array_function__(self, func, types, args, kwargs): return NotImplemented - def __array__(self): + def __array__(self, **kwargs): raise TypeError(f"Cannot convert {self.__class__.__name__} to an array. Use .array instead.")