import numpy as np

# Note: we use dtype objects instead of dtype classes. The spec does not
# require any behavior on dtypes other than equality.
int8 = np.dtype('int8')
int16 = np.dtype('int16')
int32 = np.dtype('int32')
int64 = np.dtype('int64')
uint8 = np.dtype('uint8')
uint16 = np.dtype('uint16')
uint32 = np.dtype('uint32')
uint64 = np.dtype('uint64')
float32 = np.dtype('float32')
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]

@@ -472,33 +472,33 @@
 %0A%0A_all_dtypes = 
-%5B
+(
 int8, int16, int
@@ -576,17 +576,17 @@
 64, bool
-%5D
+)
 %0A_boolea
@@ -600,14 +600,14 @@
 s = 
-%5B
+(
 bool
-%5D
+)
 %0A_fl
@@ -614,33 +614,33 @@
 oating_dtypes = 
-%5B
+(
 float32, float64
@@ -639,17 +639,17 @@
  float64
-%5D
+)
 %0A_intege
@@ -659,17 +659,17 @@
 types = 
-%5B
+(
 int8, in
@@ -716,17 +716,17 @@
 , uint64
-%5D
+)
 %0A_intege
@@ -747,17 +747,17 @@
 types = 
-%5B
+(
 bool, in
@@ -810,17 +810,17 @@
 , uint64
-%5D
+)
 %0A_numeri
@@ -834,9 +834,9 @@
 s = 
-%5B
+(
 floa
@@ -909,6 +909,6 @@
 nt64
-%5D
+)
 %0A

Use tuples for internal type lists in the array API