Fixed pylint warnings

This commit is contained in:
Robbe Haesendonck
2023-09-21 12:28:45 +02:00
committed by Sarah Hoffmann
parent d4018f2e3b
commit b7c83d3580
2 changed files with 4 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ class SetupAll:
self._finalize_database(args.config.get_libpq_dsn(), args.offline)
return 0
def _is_complete_import(self, args: NominatimArgs) -> bool:
""" Determine if the import is complete or if only the database should be prepared.
"""

View File

@@ -23,7 +23,9 @@ from nominatim.db.async_connection import DBConnection
from nominatim.db.sql_preprocessor import SQLPreprocessor
from nominatim.tools.exec_utils import run_osm2pgsql
from nominatim.errors import UsageError
from nominatim.version import POSTGRESQL_REQUIRED_VERSION, POSTGIS_REQUIRED_VERSION, HSTORE_REQUIRED_VERSION
from nominatim.version import POSTGRESQL_REQUIRED_VERSION, \
POSTGIS_REQUIRED_VERSION, \
HSTORE_REQUIRED_VERSION
LOG = logging.getLogger()