From 914ef0ead439fad7cab71ce4f1c3fab5573b8a8d Mon Sep 17 00:00:00 2001 From: Stefan Fochler Date: Thu, 4 Dec 2025 10:41:06 +0100 Subject: [PATCH] Coordinates: fix typespec of interpolate/2 to allow for any number inputs --- lib/vector_tile/coordinates.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vector_tile/coordinates.ex b/lib/vector_tile/coordinates.ex index ebc167b..527752e 100644 --- a/lib/vector_tile/coordinates.ex +++ b/lib/vector_tile/coordinates.ex @@ -24,7 +24,7 @@ defmodule VectorTile.Coordinates do # y = 0, because it's on the north edge of the tile's bounding box """ - @spec interpolate(coordinate :: list(integer()), tile :: VectorTile.Tile.t() | Keyword.t()) :: + @spec interpolate(coordinate :: list(number()), tile :: VectorTile.Tile.t() | Keyword.t()) :: list(integer()) def interpolate([x, y] = _coordinate, opts) when is_number(x) and is_number(y) do bbox = Access.fetch!(opts, :bbox)