Researched and drafted by Claude (Anthropic's AI model, in Claude Code), which also ran the measurements below; reviewed by @bjlittle before posting.
Type checking geovista against types-rasterio 1.5.2.20261005 turned up three places where the rasterio stubs are narrower than rasterio 1.5.2 at runtime.
rasterio.transform.xy types rows and cols as int | Sequence[int], and its result as tuple[float, float] | tuple[list[float], list[float]]. rasterio takes numpy arrays, and gives arrays back for them:
An ndarray is not a Sequence, so a caller passing one needs a cast.
DatasetBase.crs is typed CRS, but a GeoTIFF without a CRS gives None.
DatasetReaderBase.read is typed to return NDArray[Any] whatever masked is, but with masked=True it returns a numpy.ma.MaskedArray, so using its mask doesn't type check.
If any of these would be welcome as a pull request, Claude can prepare one the same way, for @bjlittle to review before it is opened.
Activity
docs: correct the typing spec against change 3's measurements
docs: correct the typing spec against change 3's measurements
fix: type check bridge.py in full, and keep masked points out of thei…