I guess he means this is now an python scalar not an array scalar, I think `a.dtype.type(np.nan)` should be right