You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the standard, iinfo and finfo are supposed to accept an array (not just a type) for the first argument, but:
importarray_api_strictasxpxp.finfo(xp.asarray([1.])) # ValueError: data type <class 'numpy.object_'> not inexactxp.iinfo(xp.asarray([1])) # ValueError: Invalid integer data type 'O'.xp.__version__# 2.2
According to the standard,
iinfo
andfinfo
are supposed to accept an array (not just a type) for the first argument, but:Crossref numpy/numpy#22977, specifically argument against this type of overloading numpy/numpy#22977 (comment).
The text was updated successfully, but these errors were encountered: