This should be `Dtype` and not `double`, no? Otherwise this looks good.