mypy: minimal annotations to enable a clean run

This commit is contained in:
Sarah Hoffmann
2022-06-30 10:48:04 +02:00
parent b1903f0fbf
commit 9b636fdc10
5 changed files with 23 additions and 5 deletions

View File

@@ -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,