summaryrefslogtreecommitdiff
path: root/numpy/_array_api/_creation_functions.py
diff options
context:
space:
mode:
authorAaron Meurer <asmeurer@gmail.com>2021-02-26 18:22:06 -0700
committerAaron Meurer <asmeurer@gmail.com>2021-02-26 18:22:06 -0700
commit2ff635c7cbc8804a3956ddbf8165f536dffc2df5 (patch)
treea4c1f271d8b30c71f6a16e6150abcd9d5f6257ac /numpy/_array_api/_creation_functions.py
parentb7856e348d731551405bdf0dd41ff1b0416da129 (diff)
downloadnumpy-2ff635c7cbc8804a3956ddbf8165f536dffc2df5.tar.gz
Don't check if a dtype is in all_dtypes
The array API namespace is not going to do type checking against arbitrary objects. An object that takes an array as input should assume that it will get an array API namespace array object. Passing a NumPy array or other type of object to any of the functions is undefined behavior, unless the type signature allows for it.
Diffstat (limited to 'numpy/_array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions