Fix for mypy error, closes #396

Should help tests pass for #395 and #79
This commit is contained in:
Simon Willison 2022-02-03 22:10:09 -08:00
commit 0fe0f476a7

View file

@ -29,7 +29,7 @@ SPATIALITE_PATHS = (
)
def find_spatialite() -> str:
def find_spatialite() -> Optional[str]:
"""
The ``find_spatialite()`` function searches for the `SpatiaLite <https://www.gaia-gis.it/fossil/libspatialite/index>`__ SQLite extension in some common places. It returns a string path to the location, or ``None`` if SpatiaLite was not found.