This line appears to be failing:
|
data = cast(GeoInterfaceProtocol, data) |
GeoInterfaceProtocol is only defined when TYPE_CHECKING is defined, so maybe we should only cast within an if TYPE_CHECKING block?
We should add a test for this with a shapely geom too.