Closed
Description
Shapely allows coordinates, such as Point
or LineString
vertices, to be either 2-part (x
, y
) or 3-part (x
, y
, z
).
Thus the following code is valid:
linestring = LineString([(1, 2, 3), (4, 5, 6)])
...
for x, y, z in linestring.coords:
...
Shapely stubs, however, only cover 2-part coordinates. So the code above does not type check and complains about trying to unpack a 2-tuple into 3 items. This makes the stubs unusable for projects that heavily rely on 3-part coordinates.