X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/69f9122beffbac78276634992766f612390bbf94..018ef5bd539d1b6396dea953e1b6bc920538b132:/nominatim/db/status.py?ds=sidebyside diff --git a/nominatim/db/status.py b/nominatim/db/status.py index f0039546..2c01de71 100644 --- a/nominatim/db/status.py +++ b/nominatim/db/status.py @@ -12,11 +12,10 @@ import datetime as dt import logging import re -from typing_extensions import TypedDict - from nominatim.db.connection import Connection from nominatim.tools.exec_utils import get_url from nominatim.errors import UsageError +from nominatim.typing import TypedDict LOG = logging.getLogger() ISODATE_FORMAT = '%Y-%m-%dT%H:%M:%S' @@ -91,7 +90,7 @@ def get_status(conn: Connection) -> Tuple[Optional[dt.datetime], Optional[int], if cur.rowcount < 1: return None, None, None - row = cast(StatusRow, cur.fetchone()) # type: ignore[no-untyped-call] + row = cast(StatusRow, cur.fetchone()) return row['lastimportdate'], row['sequence_id'], row['indexed']