From 0fe0f476a73ddbb3fea879bdb6bfef3ba4b97768 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 3 Feb 2022 22:10:09 -0800 Subject: [PATCH] Fix for mypy error, closes #396 Should help tests pass for #395 and #79 --- sqlite_utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite_utils/utils.py b/sqlite_utils/utils.py index c2a7c91..b719b01 100644 --- a/sqlite_utils/utils.py +++ b/sqlite_utils/utils.py @@ -29,7 +29,7 @@ SPATIALITE_PATHS = ( ) -def find_spatialite() -> str: +def find_spatialite() -> Optional[str]: """ The ``find_spatialite()`` function searches for the `SpatiaLite `__ SQLite extension in some common places. It returns a string path to the location, or ``None`` if SpatiaLite was not found.