Mypy is not aware that changing the dtype of an array changes its annotated type, even if the dtype is passed as a literal np.dtype[np.float64], np.dtype[np.float32], etc. I imagine that this kind of ...
AttributeError: 'numpy.ndarray' object has no attribute 'rint' when using Dataset.to_netcdf #3149 Closed Closed AttributeError: 'numpy.ndarray' object has no attribute 'rint' when using ...