title: Numpy np.array with dtype TypeError
body: <p><strong>Description</strong></p>
  
  <p>I have spent about an hour trying to hunt down a numpy array construction error. I must not be using numpy dtypes correctly but the error message is not descriptive enough and I am not given a good enough stack trace to find the error.</p>
  
  <p><strong>Simplified Example that creates same error</strong>:</p>
  
  <pre><code> import numpy as np
   names = ['id', 'x']
   formats = [np.int64, np.float64]
   np.array([1, 1.0], dtype={'names': names, 'formats': formats})
  </code></pre>
  
  <p>The following code results in the error</p>
  
  <pre><code> ----&gt; 1 np.array([1, 1.0], dtype={'names': names, 'formats': formats})
   TypeError: a bytes-like object is required, not 'int'
  </code></pre>
  
  <p>So i get that the error occurs from the first element being an int but why is it expecting a bytes like object?</p>
  
  <p>Answer: it has nothing to do with the fact that the first element is in int. The list needs to be a tuple see below.</p>