mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
mypy: minimal annotations to enable a clean run
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
"""
|
||||
Functions for database migration to newer software versions.
|
||||
"""
|
||||
from typing import List, Tuple, Callable
|
||||
import logging
|
||||
|
||||
from psycopg2 import sql as pysql
|
||||
@@ -20,7 +21,7 @@ from nominatim.errors import UsageError
|
||||
|
||||
LOG = logging.getLogger()
|
||||
|
||||
_MIGRATION_FUNCTIONS = []
|
||||
_MIGRATION_FUNCTIONS : List[Tuple[str, Callable]] = []
|
||||
|
||||
def migrate(config, paths):
|
||||
""" Check for the current database version and execute migrations,
|
||||
|
||||
Reference in New Issue
Block a user