In Numpy the direct setting of the dtype, shape and strides attributes is being deprecated as these operations are not safe (in particular in the free-threading build). See numpy/numpy#28800 for ...
If a user passes an array with object dtypes, to scipy.spatial.distance.squareform(), then the elements of that array will be copied to a new array by squareform(). For most types, this is fine. For ...