We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00f63bb commit 081d700Copy full SHA for 081d700
array_api_tests/dtype_helpers.py
@@ -124,7 +124,11 @@ class MinMax(NamedTuple):
124
)
125
else:
126
default_int = xp.asarray(int()).dtype
127
+ if default_int not in int_dtypes:
128
+ warn(f"inferred default int is {default_int!r}, which is not an int")
129
default_float = xp.asarray(float()).dtype
130
+ if default_float not in float_dtypes:
131
+ warn(f"inferred default float is {default_float!r}, which is not a float")
132
if dtype_nbits[default_int] == 32:
133
default_uint = xp.uint32
134
0 commit comments