X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/69f9122beffbac78276634992766f612390bbf94..afb439b089efd45a5393be8eb0c3e8877f1ff7a7:/nominatim/db/status.py 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']