diff options
author | Aaron Meurer <asmeurer@gmail.com> | 2021-02-26 18:22:06 -0700 |
---|---|---|
committer | Aaron Meurer <asmeurer@gmail.com> | 2021-02-26 18:22:06 -0700 |
commit | 2ff635c7cbc8804a3956ddbf8165f536dffc2df5 (patch) | |
tree | a4c1f271d8b30c71f6a16e6150abcd9d5f6257ac /numpy/_array_api/_creation_functions.py | |
parent | b7856e348d731551405bdf0dd41ff1b0416da129 (diff) | |
download | numpy-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