]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/db/properties.py
Merge pull request #2957 from lonvia/reorganise-api-module
[nominatim.git] / nominatim / db / properties.py
index 40cb262edf4e048592ac8cc45849b2edeff669b8..e8d5e0ca5c47194f7e72402f3c6b541a251c6a2a 100644 (file)
@@ -41,4 +41,7 @@ def get_property(conn: Connection, name: str) -> Optional[str]:
         if cur.rowcount == 0:
             return None
 
-        return cast(Optional[str], cur.fetchone()[0]) # type: ignore[no-untyped-call]
+        result = cur.fetchone()
+        assert result is not None
+
+        return cast(Optional[str], result[0])