summaryrefslogtreecommitdiff
path: root/numpy/array_api/_manipulation_functions.py
diff options
context:
space:
mode:
authorwarren <warren.weckesser@gmail.com>2021-09-22 20:37:18 -0400
committerwarren <warren.weckesser@gmail.com>2021-09-22 20:42:14 -0400
commit2e17eefb567a2b81849330980d98876d6eaccf66 (patch)
tree9eb35cf61e329c79bd602d3f05c8e5ab58de6679 /numpy/array_api/_manipulation_functions.py
parent24c4436b38b0507d757b996a4bd54ce2a9585dd0 (diff)
downloadnumpy-2e17eefb567a2b81849330980d98876d6eaccf66.tar.gz
MAINT: lib: Check that the dtype given to fromregex is structured.
In fromregex, add a check that verifies that the given dtype is a structured datatype. This avoids confusing error messages that can occur when the given data type is not structured. Also tweaked the code in the Examples section. Closes gh-8891.
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions