diff --git a/src/fire2a/utils.py b/src/fire2a/utils.py index 230a556..743b88f 100644 --- a/src/fire2a/utils.py +++ b/src/fire2a/utils.py @@ -50,7 +50,7 @@ def conv(no_data, dtype, val): return np.loadtxt(fname, converters=conv, dtype=dtype, **kwargs) -def qgis2numpy_dtype(qgis_dtype: Qgis.DataType) -> Union[np.dtype[Any], None]: +def qgis2numpy_dtype(qgis_dtype: Qgis.DataType) -> Union[np.dtype, None]: """Conver QGIS data type to corresponding numpy data type https://raw.githubusercontent.com/PUTvision/qgis-plugin-deepness/fbc99f02f7f065b2f6157da485bef589f611ea60/src/deepness/processing/processing_utils.py This is modified and extended copy of GDALDataType.