Shapely
stubs for CoordinateSequence
do not cover 2.5D case
#13422
Labels
stubs: false positive
Type checkers report false errors
Shapely allows coordinates, such as
Point
orLineString
vertices, to be either 2-part (x
,y
) or 3-part (x
,y
,z
).Thus the following code is valid:
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.
The text was updated successfully, but these errors were encountered: