summaryrefslogtreecommitdiff
path: root/numpy/_array_api
diff options
context:
space:
mode:
authorAaron Meurer <asmeurer@gmail.com>2021-07-23 18:27:24 -0600
committerAaron Meurer <asmeurer@gmail.com>2021-07-23 18:27:24 -0600
commit09a4f8c7fc961e9bf536060533a4fd26c35004d8 (patch)
treeceb49b11ca6957e9c86c3845419203ebf61b1568 /numpy/_array_api
parentd93aad2bde7965d1fdb506a5379d8007b399b3f0 (diff)
downloadnumpy-09a4f8c7fc961e9bf536060533a4fd26c35004d8.tar.gz
Add a TODO comment
Diffstat (limited to 'numpy/_array_api')
-rw-r--r--numpy/_array_api/_creation_functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_array_api/_creation_functions.py b/numpy/_array_api/_creation_functions.py
index 0c39a5875..acf78056a 100644
--- a/numpy/_array_api/_creation_functions.py
+++ b/numpy/_array_api/_creation_functions.py
@@ -42,7 +42,7 @@ def asarray(obj: Union[Array, bool, int, float, NestedSequence[bool|int|float],
return obj
if dtype is None and isinstance(obj, int) and (obj > 2**64 or obj < -2**63):
# Give a better error message in this case. NumPy would convert this
- # to an object array.
+ # to an object array. TODO: This won't handle large integers in lists.
raise OverflowError("Integer out of bounds for array dtypes")
res = np.asarray(obj, dtype=dtype)
return Array._new(res)