Home>

I wrote the following code.

np.dtype ([('r', np.ubyte, 1), ('g', np.ubyte, 1), ('b', np.ubyte, 1), ('a', np.ubyte, 1)])


I wrote it with reference to the numpy documentation, so I don't think there are any code mistakes, but I get the error'tuple' object is not callable.
(Running with jupyter.)

I would like to know how to resolve the error. Thank you.