From b7c83d35808c1706bc6e92d21c74765e23103446 Mon Sep 17 00:00:00 2001 From: Robbe Haesendonck Date: Thu, 21 Sep 2023 12:28:45 +0200 Subject: [PATCH] Fixed pylint warnings --- nominatim/clicmd/setup.py | 2 +- nominatim/tools/database_import.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nominatim/clicmd/setup.py b/nominatim/clicmd/setup.py index 1a651157..f0fe4bd8 100644 --- a/nominatim/clicmd/setup.py +++ b/nominatim/clicmd/setup.py @@ -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. """ diff --git a/nominatim/tools/database_import.py b/nominatim/tools/database_import.py index 82bdd5ed..1f39f381 100644 --- a/nominatim/tools/database_import.py +++ b/nominatim/tools/database_import.py @@ -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() -- 2.39.5