Skip to content

Commit ab4df71

Browse files
committed
Coordinates: fix typespec of interpolate/2 to allow for any number inputs
1 parent 3d7395a commit ab4df71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vector_tile/coordinates.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule VectorTile.Coordinates do
2424
# y = 0, because it's on the north edge of the tile's bounding box
2525
2626
"""
27-
@spec interpolate(coordinate :: list(integer()), tile :: VectorTile.Tile.t() | Keyword.t()) ::
27+
@spec interpolate(coordinate :: list(number()), tile :: VectorTile.Tile.t() | Keyword.t()) ::
2828
list(integer())
2929
def interpolate([x, y] = _coordinate, opts) when is_number(x) and is_number(y) do
3030
bbox = Access.fetch!(opts, :bbox)

0 commit comments

Comments
 (0)