Numpy arrays have been checkable by dtype for a little while now, and I think recent versions also support shape constraints.
Numpy arrays have been checkable by dtype for a little while now, and I think recent versions also support shape constraints.