Use tuples for internal type lists in the array API
These are easier for type checkers to handle.
@@ -15,10 +15,10 @@ float64 = np.dtype('float64')
# Note: This name is changed
bool = np.dtype('bool')
-_all_dtypes = [int8, int16, int32, int64, uint8, uint16, uint32, uint64,
- float32, float64, bool]
-_boolean_dtypes = [bool]
-_floating_dtypes = [float32, float64]
-_integer_dtypes = [int8, int16, int32, int64, uint8, uint16, uint32, uint64]
-_integer_or_boolean_dtypes = [bool, int8, int16, int32, int64, uint8, uint16, uint32, uint64]
-_numeric_dtypes = [float32, float64, int8, int16, int32, int64, uint8, uint16, uint32, uint64]
+_all_dtypes = (int8, int16, int32, int64, uint8, uint16, uint32, uint64,
+ float32, float64, bool)
+_boolean_dtypes = (bool)
+_floating_dtypes = (float32, float64)
+_integer_dtypes = (int8, int16, int32, int64, uint8, uint16, uint32, uint64)
+_integer_or_boolean_dtypes = (bool, int8, int16, int32, int64, uint8, uint16, uint32, uint64)
+_numeric_dtypes = (float32, float64, int8, int16, int32, int64, uint8, uint16, uint32, uint64)
