SciPy

scipy.sparse.dia_matrix.dtype

dia_matrix.dtype