Generate the fake coordinates as floats

Also, remove the misleading comment in `Location`
This commit is contained in:
Alexander Hess 2026-12-01 15:27:53 +01:00
commit 8abc93987e
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -22,7 +22,6 @@ class Location:
def __init__(self, latitude: float, longitude: float) -> None:
"""Create a location from a WGS84-conforming `latitude`-`longitude` pair."""
# The SQLAlchemy columns come as `Decimal`s due to the `DOUBLE_PRECISION`.
self._latitude = float(latitude)
self._longitude = float(longitude)