BUG: ensure passing np.dtype
to itself doesn't crash
#25121
Merged
np.dtype
to itself doesn't crash
#25121