summaryrefslogtreecommitdiff
path: root/numpy/array_api/_linear_algebra_functions.py
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-10-25 11:47:19 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2021-10-25 12:20:15 +0200
commit6b02a0e637aa7db4f48e9c711310e732bab3813d (patch)
treedbea3dc1855bcef327c82a640d2984fdecfa34ac /numpy/array_api/_linear_algebra_functions.py
parent7522da64dd7158169c06f7a6151509e56479e1ea (diff)
downloadnumpy-6b02a0e637aa7db4f48e9c711310e732bab3813d.tar.gz
MAINT: Remove redundant `NoReturn` overloads
Previously these overloads had the (rather niche) purpose of preventing operations between `bytes`- and `int`-based array-likes, as `bytes` is a subtype of `Sequence[int]`. Interestingly, these overloads have been made redundant by the introduction of the `npt._NestedSequence` protocol for the same reason as numpy/numpy#20037: `bytes` (and `str`) do not fully implement the `collections.abc.Sequence` interface. This "problem" could be fixed by changing the signature of `__contains__`, but in this it seems far more advantageous to leave things "broken" as it is.
Diffstat (limited to 'numpy/array_api/_linear_algebra_functions.py')
0 files changed, 0 insertions, 0 deletions