Doctest running with the gunittest test suite fail with numpy 2.0.1, as the datatype (like int32) doesn't appear when representing the shape of the array. I don't know how to support both older numpy ...
>>> from osgeo import gdal Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/GDAL-3.6.0-py3.10 ...